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 ###############################################################################
8 # Makefile for the ASN.1 Compiler
11 include $(TOP
)/Makefile.cfg
13 ifeq ($(findstring g
++, $(CXX
)), g
++)
14 CXXFLAGS
+= -fno-exceptions
18 ifneq ($(OPENSSL_DIR
), default
)
19 CPPFLAGS
+= -I
$(OPENSSL_DIR
)/include
23 TARGETS
:= libasn1_compiler.a
25 ORIGINATORS
:= asn1_preparser.l asn1la.l asn1p.y
27 GENERATED_SOURCES
:= asn1la.yy.
cc asn1p.tab.
cc asn1_preparser.
lex.c
29 STATIC_SOURCES
:= AST_asn1.
cc Ref.
cc Block.
cc Object.
cc OCSV.
cc \
30 Tag.
cc TableConstraint.
cc TokenBuf.
cc Type_parse.
cc
32 SOURCES
:= $(STATIC_SOURCES
) $(GENERATED_SOURCES
)
34 GENERATED_HEADERS
:= asn1p.tab.hh
36 GENERATED_OTHERS
:= asn1p.output
lex.backup
38 OBJECTS
:= $(patsubst %.
cc,%.o
,$(patsubst %.c
,%.o
,$(SOURCES
)))
40 DEPFILES
:= $(patsubst %.
cc,%.d
,$(patsubst %.c
,%.d
,$(SOURCES
)))
46 libasn1_compiler.a
: $(OBJECTS
)
49 asn1_preparser.
lex.c
: asn1_preparser.l
50 $(FLEX
) $(FLEXFLAGS
) -Pasn1_preparser_
-o
$@
$<
52 asn1la.yy.
cc: asn1la.l
53 $(FLEX
) $(FLEXFLAGS
) -o
$@
$<
55 asn1p.tab.
cc asn1p.tab.hh
: asn1p.y
56 $(BISON
) $(BISONFLAGS
) $<
58 include ..
/..
/Makefile.genrules
60 # pre-seed dependencies
61 Type_parse.d TokenBuf.d TableConstraint.d OCSV.d Object.d Block.d Ref.d AST_asn1.d asn1la.yy.d
: asn1p.tab.hh