Titan Core Initial Contribution
[deliverable/titan.core.git] / compiler2 / asn1 / Makefile
1 ###############################################################################
2 # Copyright (c) 2000-2014 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
9
10 TOP := ../..
11 include $(TOP)/Makefile.cfg
12
13 ifeq ($(findstring g++, $(CXX)), g++)
14 CXXFLAGS += -fno-exceptions
15 endif
16
17 ifdef OPENSSL_DIR
18 ifneq ($(OPENSSL_DIR), default)
19 CPPFLAGS += -I$(OPENSSL_DIR)/include
20 endif
21 endif
22
23 TARGETS := libasn1_compiler.a
24
25 ORIGINATORS := asn1_preparser.l asn1la.l asn1p.y
26
27 GENERATED_SOURCES := asn1la.yy.cc asn1p.tab.cc asn1_preparser.lex.c
28
29 STATIC_SOURCES := AST_asn1.cc Ref.cc Block.cc Object.cc OCSV.cc \
30 Tag.cc TableConstraint.cc TokenBuf.cc Type_parse.cc
31
32 SOURCES := $(STATIC_SOURCES) $(GENERATED_SOURCES)
33
34 GENERATED_HEADERS := asn1p.tab.hh
35
36 GENERATED_OTHERS := asn1p.output lex.backup
37
38 OBJECTS := $(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(SOURCES)))
39
40 DEPFILES := $(patsubst %.cc,%.d,$(patsubst %.c,%.d,$(SOURCES)))
41
42 SUBDIRS :=
43
44 all run: $(TARGETS)
45
46 libasn1_compiler.a: $(OBJECTS)
47 $(AR) -r $@ $?
48
49 asn1_preparser.lex.c: asn1_preparser.l
50 $(FLEX) $(FLEXFLAGS) -Pasn1_preparser_ -o$@ $<
51
52 asn1la.yy.cc: asn1la.l
53 $(FLEX) $(FLEXFLAGS) -o$@ $<
54
55 asn1p.tab.cc asn1p.tab.hh: asn1p.y
56 $(BISON) $(BISONFLAGS) $<
57
58 include ../../Makefile.genrules
59
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
This page took 0.030585 seconds and 5 git commands to generate.