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