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
15 # Szabo, Janos Zoltan – initial implementation
17 ##############################################################################
18 # Makefile for the ASN.1 Compiler
21 include $(TOP
)/Makefile.cfg
23 ifeq ($(findstring g
++, $(CXX
)), g
++)
24 CXXFLAGS
+= -fno-exceptions
28 ifneq ($(OPENSSL_DIR
), default
)
29 CPPFLAGS
+= -I
$(OPENSSL_DIR
)/include
33 TARGETS
:= libasn1_compiler.a
35 ORIGINATORS
:= asn1_preparser.l asn1la.l asn1p.y
37 GENERATED_SOURCES
:= asn1la.yy.
cc asn1p.tab.
cc asn1_preparser.
lex.c
39 STATIC_SOURCES
:= AST_asn1.
cc Ref.
cc Block.
cc Object.
cc OCSV.
cc \
40 Tag.
cc TableConstraint.
cc TokenBuf.
cc Type_parse.
cc
42 SOURCES
:= $(STATIC_SOURCES
) $(GENERATED_SOURCES
)
44 GENERATED_HEADERS
:= asn1p.tab.hh
46 GENERATED_OTHERS
:= asn1p.output
lex.backup
48 OBJECTS
:= $(patsubst %.
cc,%.o
,$(patsubst %.c
,%.o
,$(SOURCES
)))
50 DEPFILES
:= $(patsubst %.
cc,%.d
,$(patsubst %.c
,%.d
,$(SOURCES
)))
56 libasn1_compiler.a
: $(OBJECTS
)
59 asn1_preparser.
lex.c
: asn1_preparser.l
60 $(FLEX
) $(FLEXFLAGS
) -Pasn1_preparser_
-o
$@
$<
62 asn1la.yy.
cc: asn1la.l
63 $(FLEX
) $(FLEXFLAGS
) -o
$@
$<
65 asn1p.tab.
cc asn1p.tab.hh
: asn1p.y
66 $(BISON
) $(BISONFLAGS
) $<
68 include ..
/..
/Makefile.genrules
70 # pre-seed dependencies
71 Type_parse.d TokenBuf.d TableConstraint.d OCSV.d Object.d Block.d Ref.d AST_asn1.d asn1la.yy.d
: asn1p.tab.hh