############################################################################## # Copyright (c) 2000-2016 Ericsson Telecom AB # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v1.0 # which accompanies this distribution, and is available at # http://www.eclipse.org/legal/epl-v10.html # # Contributors: # Balasko, Jeno # Kovacs, Ferenc # Lovassy, Arpad # Ormandi, Matyas # Szabados, Kristof # ############################################################################## # This Makefile was generated by the Makefile Generator # of the TTCN-3 Test Executor version 1.8.pl5 # for ekrisza (ekrisza@EVF4CE46994947) on Mon Jan 24 08:27:55 2011 # The following make commands are available: # - make, make all Builds the executable test suite. # - make compile Translates TTCN-3 and ASN.1 modules to C++. # - make clean Removes all generated files. # - make dep Creates/updates dependency list. # - make archive Archives all source files. # # Set these variables... # TOP := ../../ include $(TOP)/Makefile.cfg # The path of your TTCN-3 Test Executor installation: # Uncomment this line to override the environment variable. # TTCN3_DIR = # Your platform: (SOLARIS, SOLARIS8, LINUX, FREEBSD or WIN32) ifndef PLATFORM PLATFORM = SOLARIS endif # Your C++ compiler: #CXX = g++ # Flags for the C++ preprocessor (and makedepend as well): CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)/include -I$(XMLDIR)/include/libxml2 ifdef RT2 CPPFLAGS += -DTITAN_RUNTIME_2 endif # Flags for the C++ compiler: CXXFLAGS = -Wall # Flags for the linker: LDFLAGS = # Flags for the TTCN-3 and ASN.1 compiler: COMPILER_FLAGS = -L ifdef RT2 COMPILER_FLAGS += -R endif # Execution mode: (either ttcn3 or ttcn3-parallel) ifndef RT2 TTCN3_LIB = ttcn3 else TTCN3_LIB = ttcn3-rt2 endif # The path of your OpenSSL installation: # If you do not have your own one, leave it unchanged. OPENSSL_DIR = $(TTCN3_DIR) # Directory to store the archived source files: # Note: you can set any directory except ./archive ARCHIVE_DIR = backup # # You may change these variables. Add your files if necessary... # # TTCN-3 modules of this project: TTCN3_MODULES = Temp.ttcn # ASN.1 modules of this project: ASN1_MODULES = # C++ source & header files generated by TTCN-3 & ASN.1 compilers: GENERATED_SOURCES = Temp.cc GENERATED_HEADERS = Temp.hh # Source & header files of Test Ports and your other modules: USER_SOURCES = USER_HEADERS = # Object files of this project that are needed for the executable test suite: OBJECTS = Temp.o # The name of the executable test suite: TARGET = Temp ifdef COVERAGE CPPFLAGS += -fprofile-arcs -ftest-coverage -g CXXFLAGS += -fprofile-arcs -ftest-coverage -g LDFLAGS += -fprofile-arcs -ftest-coverage -g -lgcov endif # # Do not modify these unless you know what you are doing... # SOLARIS_LIBS = -lxnet -L$(XMLDIR)/lib -lxml2 -lresolv SOLARIS8_LIBS = -lxnet -L$(XMLDIR)/lib -lxml2 -lresolv -lnsl -lsocket LINUX_LIBS = -L$(XMLDIR)/lib -lxml2 -lpthread -lrt FREEBSD_LIBS = -L$(XMLDIR)/lib -lxml2 WIN32_LIBS = -L$(XMLDIR)/lib -lxml2 # # Rules for building the executable... # all: $(TARGET) ; $(TARGET): $(OBJECTS) $(CXX) $(LDFLAGS) -o $@ $(OBJECTS) -L$(TTCN3_DIR)/lib -l$(TTCN3_LIB) \ -L$(OPENSSL_DIR)/lib -lcrypto $($(PLATFORM)_LIBS) .cc.o .c.o: $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< $(GENERATED_SOURCES) $(GENERATED_HEADERS): compile @if [ ! -f $@ ]; then $(RM) compile; $(MAKE) compile; fi compile: $(TTCN3_MODULES) $(ASN1_MODULES) $(TTCN3_DIR)/bin/compiler $(COMPILER_FLAGS) $(TTCN3_MODULES) \ $(ASN1_MODULES) - $? touch $@ clean: -$(RM) $(TARGET) $(OBJECTS) $(GENERATED_HEADERS) \ $(GENERATED_SOURCES) compile *.log *.gcda *.gcno dep: $(GENERATED_SOURCES) makedepend $(CPPFLAGS) $(USER_SOURCES) $(GENERATED_SOURCES) archive: mkdir -p $(ARCHIVE_DIR) tar -cvhf - $(TTCN3_MODULES) $(ASN1_MODULES) \ $(USER_HEADERS) $(USER_SOURCES) Makefile \ | gzip >$(ARCHIVE_DIR)/$(TARGET)-`date '+%y%m%d-%H%M'`.tgz # # Add your rules here if necessary... #