| 1 |
# This Makefile was generated by the Makefile Generator |
| 2 |
# of the TTCN-3 Test Executor version CRL 113 200/5 R5B01 |
| 3 |
# for ebensza (ebensza@ebensza-VirtualBox) on Mon Aug 29 15:21:25 2016 |
| 4 |
|
| 5 |
# Copyright (c) 2000-2021 Ericsson Telecom AB |
| 6 |
|
| 7 |
# The following make commands are available: |
| 8 |
# - make, make all Builds the executable test suite. |
| 9 |
# - make archive Archives all source files. |
| 10 |
# - make check Checks the semantics of TTCN-3 and ASN.1modules. |
| 11 |
# - make port Generates port skeletons. |
| 12 |
# - make clean Removes all generated files. |
| 13 |
# - make compile Translates TTCN-3 and ASN.1 modules to C++. |
| 14 |
# - make dep Creates/updates dependency list. |
| 15 |
# - make executable Builds the executable test suite. |
| 16 |
# - make library Builds the library archive. |
| 17 |
# - make objects Builds the object files without linking the executable. |
| 18 |
# |
| 19 |
# Set these variables... |
| 20 |
# |
| 21 |
|
| 22 |
# The path of your TTCN-3 Test Executor installation: |
| 23 |
# Uncomment this line to override the environment variable. |
| 24 |
# TTCN3_DIR = |
| 25 |
|
| 26 |
# Your platform: (SOLARIS, SOLARIS8, LINUX, FREEBSD or WIN32) |
| 27 |
PLATFORM = LINUX |
| 28 |
|
| 29 |
# Your C++ compiler: |
| 30 |
# (if you change the platform, you may need to change the compiler) |
| 31 |
CXX = clang++-3.9 |
| 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 |
ifeq ($(PLATFORM), WIN32) |
| 43 |
# Silence linker warnings. |
| 44 |
LDFLAGS += -Wl,--enable-auto-import,--enable-runtime-pseudo-reloc |
| 45 |
endif |
| 46 |
|
| 47 |
# Utility to create library files |
| 48 |
AR = ar |
| 49 |
ARFLAGS = |
| 50 |
|
| 51 |
# Flags for the TTCN-3 and ASN.1 compiler: |
| 52 |
COMPILER_FLAGS = -L |
| 53 |
|
| 54 |
# Execution mode: (either ttcn3 or ttcn3-parallel) |
| 55 |
TTCN3_LIB = ttcn3-parallel |
| 56 |
|
| 57 |
# The path of your libxml2 installation: |
| 58 |
# If you do not have your own one, leave it unchanged. |
| 59 |
XMLDIR = $(TTCN3_DIR) |
| 60 |
|
| 61 |
# Directory to store the archived source files: |
| 62 |
# Note: you can set any directory except ./archive |
| 63 |
ARCHIVE_DIR = backup |
| 64 |
|
| 65 |
# |
| 66 |
# You may change these variables. Add your files if necessary... |
| 67 |
# |
| 68 |
|
| 69 |
# TTCN-3 modules of this project: |
| 70 |
TTCN3_MODULES = a1.ttcn a2.ttcn aDefault.ttcn b1.ttcn b2.ttcn bDefault.ttcn c1.ttcn c2.ttcn cDefault.ttcn d1.ttcn d2.ttcn dDefault.ttcn e1.ttcn e2.ttcn eDefault.ttcn f1.ttcn f2.ttcn fDefault.ttcn |
| 71 |
|
| 72 |
# ASN.1 modules of this project: |
| 73 |
ASN1_MODULES = |
| 74 |
|
| 75 |
# C++ source & header files generated from the TTCN-3 & ASN.1 modules of |
| 76 |
# this project: |
| 77 |
GENERATED_SOURCES = a1.cc a2.cc aDefault.cc b1.cc b2.cc bDefault.cc c1.cc c2.cc cDefault.cc d1.cc d2.cc dDefault.cc e1.cc e2.cc eDefault.cc f1.cc f2.cc fDefault.cc |
| 78 |
GENERATED_HEADERS = a1.hh a2.hh aDefault.hh b1.hh b2.hh bDefault.hh c1.hh c2.hh cDefault.hh d1.hh d2.hh dDefault.hh e1.hh e2.hh eDefault.hh f1.hh f2.hh fDefault.hh |
| 79 |
|
| 80 |
# C/C++ Source & header files of Test Ports, external functions and |
| 81 |
# other modules: |
| 82 |
USER_SOURCES = |
| 83 |
USER_HEADERS = |
| 84 |
|
| 85 |
# Object files of this project that are needed for the executable test suite: |
| 86 |
OBJECTS = $(GENERATED_OBJECTS) $(USER_OBJECTS) |
| 87 |
|
| 88 |
GENERATED_OBJECTS = a1.o a2.o aDefault.o b1.o b2.o bDefault.o c1.o c2.o cDefault.o d1.o d2.o dDefault.o e1.o e2.o eDefault.o f1.o f2.o fDefault.o |
| 89 |
|
| 90 |
USER_OBJECTS = |
| 91 |
|
| 92 |
# Other files of the project (Makefile, configuration files, etc.) |
| 93 |
# that will be added to the archived source files: |
| 94 |
OTHER_FILES = Makefile |
| 95 |
|
| 96 |
# The name of the executable test suite: |
| 97 |
EXECUTABLE = a1 |
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
LIBRARY = lib$(EXECUTABLE).a |
| 102 |
|
| 103 |
TARGET = $(EXECUTABLE) |
| 104 |
|
| 105 |
# |
| 106 |
# Do not modify these unless you know what you are doing... |
| 107 |
# Platform specific additional libraries: |
| 108 |
# |
| 109 |
SOLARIS_LIBS = -lsocket -lnsl -lxml2 |
| 110 |
SOLARIS8_LIBS = -lsocket -lnsl -lxml2 |
| 111 |
LINUX_LIBS = -lxml2 |
| 112 |
FREEBSD_LIBS = -lxml2 |
| 113 |
WIN32_LIBS = -lxml2 |
| 114 |
|
| 115 |
# |
| 116 |
# Rules for building the executable... |
| 117 |
# |
| 118 |
|
| 119 |
all: $(TARGET) ; |
| 120 |
|
| 121 |
executable: $(EXECUTABLE) ; |
| 122 |
|
| 123 |
library: $(LIBRARY) ; |
| 124 |
|
| 125 |
objects: $(OBJECTS) compile; |
| 126 |
|
| 127 |
$(EXECUTABLE): $(OBJECTS) |
| 128 |
if $(CXX) $(LDFLAGS) -o $@ $(OBJECTS) \ |
| 129 |
-L$(TTCN3_DIR)/lib -l$(TTCN3_LIB) \ |
| 130 |
-L$(OPENSSL_DIR)/lib -lcrypto \ |
| 131 |
-L$(XMLDIR)/lib $($(PLATFORM)_LIBS); \ |
| 132 |
then : ; else $(TTCN3_DIR)/bin/titanver $(OBJECTS); exit 1; fi |
| 133 |
|
| 134 |
$(LIBRARY): $(OBJECTS) |
| 135 |
$(AR) -r $(ARFLAGS) $(LIBRARY) $(OBJECTS) |
| 136 |
|
| 137 |
.cc.o .c.o: |
| 138 |
$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $< |
| 139 |
|
| 140 |
$(GENERATED_SOURCES) $(GENERATED_HEADERS): compile |
| 141 |
@if [ ! -f $@ ]; then rm -f compile; $(MAKE) compile; fi |
| 142 |
|
| 143 |
check: $(TTCN3_MODULES) $(ASN1_MODULES) |
| 144 |
$(TTCN3_DIR)/bin/compiler -s $(COMPILER_FLAGS) \ |
| 145 |
$(TTCN3_MODULES) $(PREPROCESSED_TTCN3_MODULES) $(ASN1_MODULES) |
| 146 |
|
| 147 |
port: $(TTCN3_MODULES) |
| 148 |
$(TTCN3_DIR)/bin/compiler -t $(COMPILER_FLAGS) \ |
| 149 |
$(TTCN3_MODULES) $(PREPROCESSED_TTCN3_MODULES) |
| 150 |
|
| 151 |
compile: $(TTCN3_MODULES) $(ASN1_MODULES) |
| 152 |
$(TTCN3_DIR)/bin/compiler $(COMPILER_FLAGS) \ |
| 153 |
$(TTCN3_MODULES) $(ASN1_MODULES) - $? |
| 154 |
touch $@ |
| 155 |
|
| 156 |
clean: |
| 157 |
-rm -f $(EXECUTABLE) $(LIBRARY) $(OBJECTS) $(GENERATED_HEADERS) \ |
| 158 |
$(GENERATED_SOURCES) compile \ |
| 159 |
tags *.log |
| 160 |
|
| 161 |
dep: $(GENERATED_SOURCES) $(USER_SOURCES) ; |
| 162 |
makedepend $(CPPFLAGS) -DMAKEDEPEND_RUN $(GENERATED_SOURCES) $(USER_SOURCES) |
| 163 |
|
| 164 |
archive: |
| 165 |
mkdir -p $(ARCHIVE_DIR) |
| 166 |
tar -cvhf - $(TTCN3_MODULES) $(ASN1_MODULES) \ |
| 167 |
$(USER_HEADERS) $(USER_SOURCES) $(OTHER_FILES) \ |
| 168 |
| gzip >$(ARCHIVE_DIR)/`basename $(TARGET) .exe`-`date '+%y%m%d-%H%M'`.tgz |
| 169 |
|
| 170 |
diag: |
| 171 |
$(TTCN3_DIR)/bin/compiler -v 2>&1 |
| 172 |
$(TTCN3_DIR)/bin/mctr_cli -v 2>&1 |
| 173 |
$(CXX) -v 2>&1 |
| 174 |
$(AR) -V 2>&1 |
| 175 |
@echo TTCN3_DIR=$(TTCN3_DIR) |
| 176 |
@echo OPENSSL_DIR=$(OPENSSL_DIR) |
| 177 |
@echo XMLDIR=$(XMLDIR) |
| 178 |
@echo PLATFORM=$(PLATFORM) |
| 179 |
|
| 180 |
# |
| 181 |
# Add your rules here if necessary... |
| 182 |
# |
| 183 |
|