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 ##############################################################################
18 include $(TOP
)/Makefile.cfg
20 SOURCES
:= converter.
cc \
21 XMLParser.
cc TTCN3Module.
cc TTCN3ModuleInventory.
cc \
22 RootType.
cc SimpleType.
cc AttributeType.
cc ComplexType.
cc \
23 Annotation.
cc ImportStatement.
cc \
24 PredefinedModules.
cc GeneralFunctions.
cc \
27 # No generated sources
28 STATIC_SOURCES
:= $(SOURCES
)
30 HEADERS
:= $(SOURCES
:.
cc=.hh
)
33 OBJECTS
:= $(SOURCES
:.
cc=.o
) \
35 $(TOP
)/common
/memory.o
37 ifeq ($(LICENSING
), yes
)
38 OBJECTS
+= $(TOP
)/common
/license.o
42 TARGETS
:= xsd2ttcn
$(EXESUFFIX
)
44 DEPFILES
:= $(patsubst %.
cc,%.d
,$(patsubst %.c
,%.d
,$(SOURCES
)))
47 ifeq ($(XMLDIR
), default
)
48 # libxml2 headers supplied by the system are usually in /usr/include/libxml2,
49 # so a -I is required. Rename XMLDIR for use in the common case.
51 # do not add -L/usr/lib to LDFLAGS, it's redundant
53 LDFLAGS
+= -L
$(XMLDIR
)/lib
55 # Always add to CPPFLAGS, even if "default"
56 CPPFLAGS
+= -I
$(XMLDIR
)/include/libxml2
60 ifneq ($(OPENSSL_DIR
), default
)
61 CPPFLAGS
+= -I
$(OPENSSL_DIR
)/include
62 LDFLAGS
+= -L
$(OPENSSL_DIR
)/lib
68 ifeq ($(PLATFORM
),INTERIX
)
69 # to get the "right" iconv, used by libxml2
70 CPPFLAGS
+= -I
/usr
/local
/include
73 # libraries for the linker
74 LDLIBS
+= -lxml2
-lcrypto
80 all run
: $(TARGETS
) $(PROGRAMS
)
82 xsd2ttcn
$(EXESUFFIX
): $(OBJECTS
)
83 $(CXX
) $(LDFLAGS
) -o
$@
$(OBJECTS
) $(LDLIBS
) $(MINGW_LIBS
)
87 mkdir
-p
$(TTCN3_DIR
)/programs
88 cp
$(TARGETS
) $(TTCN3_DIR
)/programs
91 cp
-f
$(TARGETS
) $(BINDIR
)
94 include $(TOP
)/Makefile.genrules
This page took 0.034979 seconds and 5 git commands to generate.