1 ###############################################################################
2 # Copyright (c) 2000-2014 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
7 ###############################################################################
8 # This Makefile was generated by the Makefile Generator
9 # of the TTCN-3 Test Executor version 1.7.pre0 build 2
10 # for Attila Balasko (ethbaat@ehubuux110) on Thu Jan 18 09:37:03 2007
13 # The following make commands are available:
14 # - make, make all Builds the executable test suite.
15 # - make archive Archives all source files.
16 # - make check Checks the semantics of TTCN-3 and ASN.1 modules.
17 # - make clean Removes all generated files.
18 # - make compile Translates TTCN-3 and ASN.1 modules to C++.
19 # - make dep Creates/updates dependency list.
20 # - make objects Builds the object files without linking the executable.
23 # Set these variables...
26 # The path of your TTCN-3 Test Executor installation:
27 # Uncomment this line to override the environment variable.
30 # Your platform: (SOLARIS, SOLARIS8, LINUX, FREEBSD or WIN32)
36 # Flags for the C++ preprocessor (and makedepend as well):
37 CPPFLAGS
= -D
$(PLATFORM
) -I
$(TTCN3_DIR
)/include
39 # Flags for the C++ compiler:
42 # Flags for the linker:
45 # Flags for the TTCN-3 and ASN.1 compiler:
48 # Execution mode: (either ttcn3 or ttcn3-parallel)
49 TTCN3_LIB
= ttcn3-parallel
51 # The path of your OpenSSL installation:
52 # If you do not have your own one, leave it unchanged.
53 OPENSSL_DIR
= $(TTCN3_DIR
)
55 # Directory to store the archived source files:
56 # Note: you can set any directory except ./archive
60 # You may change these variables. Add your files if necessary...
63 # TTCN-3 modules of this project:
64 TTCN3_MODULES
= PIPEasp_PortType.ttcn PIPEasp_Types.ttcn
66 # ASN.1 modules of this project:
69 # C++ source & header files generated from the TTCN-3 & ASN.1 modules of
71 GENERATED_SOURCES
= PIPEasp_PortType.
cc PIPEasp_Types.
cc
72 GENERATED_HEADERS
= PIPEasp_PortType.hh PIPEasp_Types.hh
74 GENERATED_SOURCES
:= $(foreach file
, $(GENERATED_SOURCES
:.
cc=), $(addprefix $(file
), .
cc _seq.
cc _set.
cc _seqof.
cc _setof.
cc _union.
cc))
77 # C/C++ Source & header files of Test Ports, external functions and
79 USER_SOURCES
= PIPEasp_PT.
cc
80 USER_HEADERS
= PIPEasp_PT.hh
82 # Object files of this project that are needed for the executable test suite:
83 OBJECTS
= PIPEasp_PortType.o PIPEasp_Types.o PIPEasp_PT.o
85 # Other files of the project (Makefile, configuration files, etc.)
86 # that will be added to the archived source files:
87 OTHER_FILES
= Makefile
89 # The name of the executable test suite:
90 TARGET
= PIPEasp_PortType
93 # Do not modify these unless you know what you are doing...
94 # Platform specific additional libraries:
96 SOLARIS_LIBS
= -lsocket
-lnsl
97 SOLARIS8_LIBS
= -lsocket
-lnsl
103 # Rules for building the executable...
108 objects
: $(OBJECTS
) ;
110 $(TARGET
): $(OBJECTS
)
111 $(CXX
) $(LDFLAGS
) -o
$@
$(OBJECTS
) \
112 -L
$(TTCN3_DIR
)/lib
-l
$(TTCN3_LIB
) \
113 -L
$(OPENSSL_DIR
)/lib
-lcrypto
$($(PLATFORM
)_LIBS
)
116 $(CXX
) -c
$(CPPFLAGS
) $(CXXFLAGS
) -o
$@
$<
118 $(GENERATED_SOURCES
) $(GENERATED_HEADERS
): compile
119 @if
[ ! -f
$@
]; then
rm -f compile
; $(MAKE
) compile
; fi
121 check: $(TTCN3_MODULES
) $(ASN1_MODULES
)
122 $(TTCN3_DIR
)/bin
/compiler
-s
$(COMPILER_FLAGS
) \
123 $(TTCN3_MODULES
) $(PREPROCESSED_TTCN3_MODULES
) $(ASN1_MODULES
)
125 compile
: $(TTCN3_MODULES
) $(ASN1_MODULES
)
126 $(TTCN3_DIR
)/bin
/compiler
$(COMPILER_FLAGS
) \
127 $(TTCN3_MODULES
) $(ASN1_MODULES
) - $?
131 -rm -f
$(TARGET
) $(OBJECTS
) $(GENERATED_HEADERS
) \
132 $(GENERATED_SOURCES
) compile \
135 dep
: $(GENERATED_SOURCES
) $(USER_SOURCES
)
136 makedepend
$(CPPFLAGS
) $(GENERATED_SOURCES
) $(USER_SOURCES
)
139 mkdir
-p
$(ARCHIVE_DIR
)
140 tar -cvhf
- $(TTCN3_MODULES
) $(ASN1_MODULES
) \
141 $(USER_HEADERS
) $(USER_SOURCES
) $(OTHER_FILES
) \
142 | gzip
>$(ARCHIVE_DIR
)/`basename $(TARGET) .exe`-`date '+%y%m%d-%H%M'`.tgz
145 # Add your rules here if necessary...