Merge pull request #75 from balaskoa/master
[deliverable/titan.core.git] / langviz / 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 # Forstner, Matyas
11 # Raduly, Csaba
12 # Szabo, Janos Zoltan – initial implementation
13 #
14 ##############################################################################
15 # Makefile for the langviz
16
17 include ../Makefile.cfg
18
19 TARGETS := langviz$(EXESUFFIX)
20
21 GENERATED_SOURCES := bison_la.yy.cc bison_p.tab.cc
22
23 SOURCES := main.cc error.c Node.cc Symbol.cc Rule.cc Grammar.cc Iterator.cc Graph.cc $(GENERATED_SOURCES)
24
25 GENERATED_HEADERS := bison_p.tab.hh
26
27 GENERATED_OTHERS := bison_p.output lex.backup
28
29 OBJECTS := $(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(SOURCES)))
30
31 COMMON_OBJECTS := ../common/memory.o ../common/new.o ../compiler2/string.o
32
33 DEPFILES := $(patsubst %.cc,%.d,$(patsubst %.c,%.d,$(SOURCES)))
34
35 SUBDIRS :=
36
37 .PHONY:
38
39 all run: $(TARGETS)
40
41 install: $(TARGETS)
42 ifeq ($(DEBUG), no)
43 $(STRIP) $(TARGETS)
44 endif
45 mkdir -p $(BINDIR)
46 cp $(TARGETS) $(BINDIR)
47
48 langviz$(EXESUFFIX): $(OBJECTS) $(COMMON_OBJECTS)
49 $(CXX) $(LDFLAGS) -o $@ $(OBJECTS) $(COMMON_OBJECTS)
50
51 bison_la.yy.cc: bison_la.l
52 $(FLEX) $(FLEXFLAGS) -o$@ $<
53
54 bison_p.tab.cc bison_p.tab.hh: bison_p.y
55 $(BISON) $(BISONFLAGS) $<
56
57 include ../Makefile.genrules
This page took 0.030314 seconds and 5 git commands to generate.