Commit | Line | Data |
---|---|---|
970ed795 EL |
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 compiler | |
9 | # of the TTCN-3 Test Executor version 1.4.pl3 | |
10 | # for Roland Gecse (ethrge@pauler) on Wed Aug 6 15:10:39 2003 | |
11 | ||
12 | # The following make commands are available: | |
13 | # - make, make all Builds the executable test suite. | |
14 | # - make compile Translates TTCN-3 and ASN.1 modules to C++. | |
15 | # - make clean Removes all generated files. | |
16 | # - make dep Creates/updates dependency list. | |
17 | # - make archive Archives all source files. | |
18 | ||
19 | # | |
20 | # Set these variables... | |
21 | # | |
22 | ||
23 | # The path of your TTCN-3 Test Executor installation: | |
24 | # Uncomment this line to override the environment variable. | |
25 | # TTCN3_DIR = | |
26 | ||
27 | # Your platform: (SOLARIS, LINUX, FREEBSD or WIN32) | |
28 | PLATFORM = SOLARIS | |
29 | ||
30 | # Your C++ compiler: | |
31 | CXX = /mnt/projects/TTCN/Tools/gcc-3.2.3-sol8/bin/g++ | |
32 | ||
33 | # Flags for the C++ preprocessor (and makedepend as well): | |
34 | CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)/include | |
35 | ||
36 | # Flags for the C++ compiler: | |
37 | CXXFLAGS = -Wall | |
38 | ||
39 | # Flags for the linker: | |
40 | LDFLAGS = | |
41 | ||
42 | # Flags for the TTCN-3 and ASN.1 compiler: | |
43 | COMPILER_FLAGS = -L | |
44 | ||
45 | # Execution mode: (either ttcn3 or ttcn3-parallel) | |
46 | TTCN3_LIB = ttcn3$(RT2_SUFFIX)$(DYNAMIC_SUFFIX) | |
47 | ||
48 | # The path of your OpenSSL installation: | |
49 | # If you do not have your own one, leave it unchanged. | |
50 | OPENSSL_DIR = $(TTCN3_DIR) | |
51 | ||
52 | # Directory to store the archived source files: | |
53 | # Note: you can set any directory except ./archive | |
54 | ARCHIVE_DIR = ./backup | |
55 | ||
56 | # | |
57 | # You may change these variables. Add your files if necessary... | |
58 | # | |
59 | ||
60 | # The TTCN-3 modules needed for this project: | |
61 | TTCN3_MODULES = Fibonacci.ttcn | |
62 | ||
63 | # The ASN.1 modules needed for this project: | |
64 | ASN1_MODULES = | |
65 | ||
66 | # C++ source & header files generated by TTCN-3 & ASN.1 compilers: | |
67 | GENERATED_SOURCES = Fibonacci.cc | |
68 | GENERATED_HEADERS = Fibonacci.hh | |
69 | ifdef CODE_SPLIT | |
70 | GENERATED_SOURCES := $(foreach file, $(GENERATED_SOURCES:.cc=), $(addprefix $(file), .cc _seq.cc _set.cc _seqof.cc _setof.cc _union.cc)) | |
71 | endif | |
72 | ||
73 | # Source & header files of Test Ports and your other modules: | |
74 | USER_SOURCES = | |
75 | USER_HEADERS = | |
76 | ||
77 | # All object files needed for the executable test suite: | |
78 | OBJECTS = Fibonacci.o | |
79 | ||
80 | # The name of the executable test suite: | |
81 | TARGET = Fibonacci | |
82 | ||
83 | # | |
84 | # Do not modify these unless you know what you are doing... | |
85 | # | |
86 | SOLARIS_LIBS = -lxnet | |
87 | LINUX_LIBS = | |
88 | FREEBSD_LIBS = | |
89 | WIN32_LIBS = | |
90 | ||
91 | # | |
92 | # Rules for building the executable... | |
93 | # | |
94 | all: $(TARGET) ; | |
95 | ||
96 | $(TARGET): $(GENERATED_SOURCES) $(USER_SOURCES) | |
97 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ -L$(TTCN3_DIR)/lib -l$(TTCN3_LIB) \ | |
98 | -L$(OPENSSL_DIR)/lib -lcrypto $($(PLATFORM)_LIBS) | |
99 | ||
100 | $(GENERATED_SOURCES) $(GENERATED_HEADERS): compile | |
101 | @if [ ! -f $@ ]; then $(RM) compile; $(MAKE) compile; fi | |
102 | ||
103 | compile: $(TTCN3_MODULES) $(ASN1_MODULES) | |
104 | $(TTCN3_DIR)/bin/compiler $(COMPILER_FLAGS) $(TTCN3_MODULES) \ | |
105 | $(ASN1_MODULES) - $? | |
106 | touch $@ | |
107 | ||
108 | clean: | |
109 | -$(RM) $(TARGET) $(OBJECTS) $(GENERATED_HEADERS) \ | |
110 | $(GENERATED_SOURCES) compile *.log | |
111 | ||
112 | dep: $(GENERATED_SOURCES) | |
113 | makedepend $(CPPFLAGS) $(USER_SOURCES) $(GENERATED_SOURCES) | |
114 | ||
115 | archive: | |
116 | mkdir -p $(ARCHIVE_DIR) | |
117 | tar -cvhf - $(TTCN3_MODULES) $(ASN1_MODULES) \ | |
118 | $(USER_HEADERS) $(USER_SOURCES) Makefile \ | |
119 | | gzip >$(ARCHIVE_DIR)/$(TARGET)-`date '+%y%m%d-%H%M'`.tgz | |
120 | ||
121 | # | |
122 | # Add your rules here if necessary... | |
123 | # |