Sync with 5.4.0
[deliverable/titan.core.git] / langviz / Makefile
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 langviz
9
10 include ../Makefile.cfg
11
12 TARGETS := langviz$(EXESUFFIX)
13
14 GENERATED_SOURCES := bison_la.yy.cc bison_p.tab.cc
15
16 SOURCES := main.cc error.c Node.cc Symbol.cc Rule.cc Grammar.cc Iterator.cc Graph.cc $(GENERATED_SOURCES)
17
18 GENERATED_HEADERS := bison_p.tab.hh
19
20 GENERATED_OTHERS := bison_p.output lex.backup
21
22 OBJECTS := $(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(SOURCES)))
23
24 COMMON_OBJECTS := ../common/memory.o ../common/new.o ../compiler2/string.o
25
26 DEPFILES := $(patsubst %.cc,%.d,$(patsubst %.c,%.d,$(SOURCES)))
27
28 SUBDIRS :=
29
30 .PHONY:
31
32 all run: $(TARGETS)
33
34 install: $(TARGETS)
35 ifeq ($(DEBUG), no)
36 $(STRIP) $(TARGETS)
37 endif
38 mkdir -p $(BINDIR)
39 cp $(TARGETS) $(BINDIR)
40
41 langviz$(EXESUFFIX): $(OBJECTS) $(COMMON_OBJECTS)
42 $(CXX) $(LDFLAGS) -o $@ $(OBJECTS) $(COMMON_OBJECTS)
43
44 bison_la.yy.cc: bison_la.l
45 $(FLEX) $(FLEXFLAGS) -o$@ $<
46
47 bison_p.tab.cc bison_p.tab.hh: bison_p.y
48 $(BISON) $(BISONFLAGS) $<
49
50 include ../Makefile.genrules
This page took 0.032649 seconds and 5 git commands to generate.