1 ##############################################################################
2 # Copyright (c) 2000-2016 Ericsson Telecom AB
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Eclipse Public License v1.0
5 # which accompanies this distribution, and is available at
6 # http://www.eclipse.org/legal/epl-v10.html
16 # Szabo, Janos Zoltan – initial implementation
19 ##############################################################################
21 include $(TOPDIR
)/Makefile.regression
23 .PHONY
: all clean dep run
25 TTCN3_LIB
= ttcn3
$(RT2_SUFFIX
)$(DYNAMIC_SUFFIX
)
27 TTCN3_MODULES
= DTAP_typedefs.ttcn SCCP_typedefs.ttcn general_typedefs.ttcn DTAP_RAW_Samples.ttcn RAW_Test.ttcn SCCP_RAW_Samples.ttcn
29 GENERATED_SOURCES
= $(TTCN3_MODULES
:.ttcn
=.
cc)
30 GENERATED_HEADERS
= $(GENERATED_SOURCES
:.
cc=.hh
)
32 GENERATED_SOURCES
:= $(foreach file
, $(GENERATED_SOURCES
:.
cc=), $(addprefix $(file
), .
cc _seq.
cc _set.
cc _seqof.
cc _setof.
cc _union.
cc))
37 # All object files needed for the executable test suite:
38 OBJECTS
= $(GENERATED_SOURCES
:.
cc=.o
) $(USER_SOURCES
:.
cc=.o
)
40 # The name of the executable test suite:
41 TARGET
= RAW_Test
$(EXESUFFIX
)
46 $(CXX
) $(LDFLAGS
) -o
$@
$(OBJECTS
) -L
$(TTCN3_DIR
)/lib
-l
$(TTCN3_LIB
) \
47 -L
$(OPENSSL_DIR
)/lib
-lcrypto
$($(PLATFORM
)_LIBS
)
49 $(GENERATED_SOURCES
) $(GENERATED_HEADERS
): compile
50 @if
[ ! -f
$@
]; then
$(RM
) compile
; $(MAKE
) compile
; fi
52 compile
: $(TTCN3_MODULES
) $(ASN1_MODULES
)
53 $(TTCN3_COMPILER
) $(COMPILER_FLAGS
) $^
57 $(RM
) $(TARGET
) $(OBJECTS
) $(GENERATED_HEADERS
) \
58 $(GENERATED_SOURCES
) compile
*.log
60 dep
: $(GENERATED_SOURCES
)
61 makedepend
$(CPPFLAGS
) $(USER_SOURCES
) $(GENERATED_SOURCES
)
63 run
: $(TARGET
) RAWtest.cfg