1 ###############################################################################
2 # Copyright (c) 2000-2015 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 ###############################################################################
9 include $(TOP
)/Makefile.cfg
11 SOURCES
:= converter.
cc \
12 XMLParser.
cc TTCN3Module.
cc TTCN3ModuleInventory.
cc \
13 RootType.
cc SimpleType.
cc AttributeType.
cc ComplexType.
cc \
14 Annotation.
cc ImportStatement.
cc \
15 PredefinedModules.
cc GeneralFunctions.
cc \
18 # No generated sources
19 STATIC_SOURCES
:= $(SOURCES
)
21 HEADERS
:= $(SOURCES
:.
cc=.hh
)
24 OBJECTS
:= $(SOURCES
:.
cc=.o
) \
26 $(TOP
)/common
/memory.o
28 ifeq ($(LICENSING
), yes
)
29 OBJECTS
+= $(TOP
)/common
/license.o
33 TARGETS
:= xsd2ttcn
$(EXESUFFIX
)
35 DEPFILES
:= $(patsubst %.
cc,%.d
,$(patsubst %.c
,%.d
,$(SOURCES
)))
38 ifeq ($(XMLDIR
), default
)
39 # libxml2 headers supplied by the system are usually in /usr/include/libxml2,
40 # so a -I is required. Rename XMLDIR for use in the common case.
42 # do not add -L/usr/lib to LDFLAGS, it's redundant
44 LDFLAGS
+= -L
$(XMLDIR
)/lib
46 # Always add to CPPFLAGS, even if "default"
47 CPPFLAGS
+= -I
$(XMLDIR
)/include/libxml2
51 ifneq ($(OPENSSL_DIR
), default
)
52 CPPFLAGS
+= -I
$(OPENSSL_DIR
)/include
53 LDFLAGS
+= -L
$(OPENSSL_DIR
)/lib
59 ifeq ($(PLATFORM
),INTERIX
)
60 # to get the "right" iconv, used by libxml2
61 CPPFLAGS
+= -I
/usr
/local
/include
64 # libraries for the linker
65 LDLIBS
+= -lxml2
-lcrypto
67 all run
: $(TARGETS
) $(PROGRAMS
)
69 xsd2ttcn
$(EXESUFFIX
): $(OBJECTS
)
70 $(CXX
) $(LDFLAGS
) -o
$@
$(OBJECTS
) $(LDLIBS
) $(MINGW_LIBS
)
74 mkdir
-p
$(TTCN3_DIR
)/programs
75 cp
$(TARGETS
) $(TTCN3_DIR
)/programs
78 cp
-f
$(TARGETS
) $(BINDIR
)
81 include $(TOP
)/Makefile.genrules
This page took 0.051486 seconds and 5 git commands to generate.