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 ##############################################################################
17 # This Makefile was generated by the Makefile Generator
18 # of the TTCN-3 Test Executor version 1.7.pre0 build 2
19 # for Attila Balasko (ethbaat@ehubuux110) on Thu Jan 18 09:37:03 2007
22 # The following make commands are available:
23 # - make, make all Builds the executable test suite.
24 # - make archive Archives all source files.
25 # - make check Checks the semantics of TTCN-3 and ASN.1 modules.
26 # - make clean Removes all generated files.
27 # - make compile Translates TTCN-3 and ASN.1 modules to C++.
28 # - make dep Creates/updates dependency list.
29 # - make objects Builds the object files without linking the executable.
32 # Set these variables...
35 # The path of your TTCN-3 Test Executor installation:
36 # Uncomment this line to override the environment variable.
39 # Your platform: (SOLARIS, SOLARIS8, LINUX, FREEBSD or WIN32)
45 # Flags for the C++ preprocessor (and makedepend as well):
46 CPPFLAGS
= -D
$(PLATFORM
) -I
$(TTCN3_DIR
)/include
48 # Flags for the C++ compiler:
51 # Flags for the linker:
54 # Flags for the TTCN-3 and ASN.1 compiler:
57 # Execution mode: (either ttcn3 or ttcn3-parallel)
58 TTCN3_LIB
= ttcn3-parallel
60 # The path of your OpenSSL installation:
61 # If you do not have your own one, leave it unchanged.
62 OPENSSL_DIR
= $(TTCN3_DIR
)
64 # Directory to store the archived source files:
65 # Note: you can set any directory except ./archive
69 # You may change these variables. Add your files if necessary...
72 # TTCN-3 modules of this project:
73 TTCN3_MODULES
= PIPEasp_PortType.ttcn PIPEasp_Types.ttcn
75 # ASN.1 modules of this project:
78 # C++ source & header files generated from the TTCN-3 & ASN.1 modules of
80 GENERATED_SOURCES
= PIPEasp_PortType.
cc PIPEasp_Types.
cc
81 GENERATED_HEADERS
= PIPEasp_PortType.hh PIPEasp_Types.hh
83 GENERATED_SOURCES
:= $(foreach file
, $(GENERATED_SOURCES
:.
cc=), $(addprefix $(file
), .
cc _seq.
cc _set.
cc _seqof.
cc _setof.
cc _union.
cc))
86 # C/C++ Source & header files of Test Ports, external functions and
88 USER_SOURCES
= PIPEasp_PT.
cc
89 USER_HEADERS
= PIPEasp_PT.hh
91 # Object files of this project that are needed for the executable test suite:
92 OBJECTS
= PIPEasp_PortType.o PIPEasp_Types.o PIPEasp_PT.o
94 # Other files of the project (Makefile, configuration files, etc.)
95 # that will be added to the archived source files:
96 OTHER_FILES
= Makefile
98 # The name of the executable test suite:
99 TARGET
= PIPEasp_PortType
102 # Do not modify these unless you know what you are doing...
103 # Platform specific additional libraries:
105 SOLARIS_LIBS
= -lsocket
-lnsl
106 SOLARIS8_LIBS
= -lsocket
-lnsl
112 # Rules for building the executable...
117 objects
: $(OBJECTS
) ;
119 $(TARGET
): $(OBJECTS
)
120 $(CXX
) $(LDFLAGS
) -o
$@
$(OBJECTS
) \
121 -L
$(TTCN3_DIR
)/lib
-l
$(TTCN3_LIB
) \
122 -L
$(OPENSSL_DIR
)/lib
-lcrypto
$($(PLATFORM
)_LIBS
)
125 $(CXX
) -c
$(CPPFLAGS
) $(CXXFLAGS
) -o
$@
$<
127 $(GENERATED_SOURCES
) $(GENERATED_HEADERS
): compile
128 @if
[ ! -f
$@
]; then
rm -f compile
; $(MAKE
) compile
; fi
130 check: $(TTCN3_MODULES
) $(ASN1_MODULES
)
131 $(TTCN3_DIR
)/bin
/compiler
-s
$(COMPILER_FLAGS
) \
132 $(TTCN3_MODULES
) $(PREPROCESSED_TTCN3_MODULES
) $(ASN1_MODULES
)
134 compile
: $(TTCN3_MODULES
) $(ASN1_MODULES
)
135 $(TTCN3_DIR
)/bin
/compiler
$(COMPILER_FLAGS
) \
136 $(TTCN3_MODULES
) $(ASN1_MODULES
) - $?
140 -rm -f
$(TARGET
) $(OBJECTS
) $(GENERATED_HEADERS
) \
141 $(GENERATED_SOURCES
) compile \
144 dep
: $(GENERATED_SOURCES
) $(USER_SOURCES
)
145 makedepend
$(CPPFLAGS
) $(GENERATED_SOURCES
) $(USER_SOURCES
)
148 mkdir
-p
$(ARCHIVE_DIR
)
149 tar -cvhf
- $(TTCN3_MODULES
) $(ASN1_MODULES
) \
150 $(USER_HEADERS
) $(USER_SOURCES
) $(OTHER_FILES
) \
151 | gzip
>$(ARCHIVE_DIR
)/`basename $(TARGET) .exe`-`date '+%y%m%d-%H%M'`.tgz
154 # Add your rules here if necessary...