ee6d237672f2f5899a3a42ed13d69525bc77fd61
[deliverable/titan.core.git] / compiler2 / asn1 / Makefile
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
7 #
8 # Contributors:
9 # Balasko, Jeno
10 # Cserveni, Akos
11 # Forstner, Matyas
12 # Kovacs, Ferenc
13 # Kremer, Peter
14 # Raduly, Csaba
15 # Szabo, Janos Zoltan – initial implementation
16 #
17 ##############################################################################
18 # Makefile for the ASN.1 Compiler
19
20 TOP := ../..
21 include $(TOP)/Makefile.cfg
22
23 ifeq ($(findstring g++, $(CXX)), g++)
24 CXXFLAGS += -fno-exceptions
25 endif
26
27 ifdef OPENSSL_DIR
28 ifneq ($(OPENSSL_DIR), default)
29 CPPFLAGS += -I$(OPENSSL_DIR)/include
30 endif
31 endif
32
33 TARGETS := libasn1_compiler.a
34
35 ORIGINATORS := asn1_preparser.l asn1la.l asn1p.y
36
37 GENERATED_SOURCES := asn1la.yy.cc asn1p.tab.cc asn1_preparser.lex.c
38
39 STATIC_SOURCES := AST_asn1.cc Ref.cc Block.cc Object.cc OCSV.cc \
40 Tag.cc TableConstraint.cc TokenBuf.cc Type_parse.cc
41
42 SOURCES := $(STATIC_SOURCES) $(GENERATED_SOURCES)
43
44 GENERATED_HEADERS := asn1p.tab.hh
45
46 GENERATED_OTHERS := asn1p.output lex.backup
47
48 OBJECTS := $(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(SOURCES)))
49
50 DEPFILES := $(patsubst %.cc,%.d,$(patsubst %.c,%.d,$(SOURCES)))
51
52 SUBDIRS :=
53
54 all run: $(TARGETS)
55
56 libasn1_compiler.a: $(OBJECTS)
57 $(AR) -r $@ $?
58
59 asn1_preparser.lex.c: asn1_preparser.l
60 $(FLEX) $(FLEXFLAGS) -Pasn1_preparser_ -o$@ $<
61
62 asn1la.yy.cc: asn1la.l
63 $(FLEX) $(FLEXFLAGS) -o$@ $<
64
65 asn1p.tab.cc asn1p.tab.hh: asn1p.y
66 $(BISON) $(BISONFLAGS) $<
67
68 include ../../Makefile.genrules
69
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
This page took 0.033927 seconds and 5 git commands to generate.