1 # Hey, emacs, this is a -*- makefile -*-
3 # Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
5 # Author: Goetz Lindenmaier
7 # Makefile for tv -- constant table and machine arithmetic
9 CFLAGS = -pipe -Wall # -ansi -pedantic
17 INCLUDES = -I../adt -I../common -I../debug -I../ident -I../include \
18 -I../ir -I../tr -I../tv
28 CFILES = $(MEMBERS:.m=.c)
30 HFILES = $(MEMBERS:.m=.h)
33 HFILES += common.h debug.h entity.h gmp.h ident.h irmode.h obst.h \
34 pset.h tune.h type.h xprintf.h xp_help.h
36 OFILES = $(MEMBERS:%.m=../objects/%.o)
38 DFILES = $(MEMBERS:.m=.d)
42 .PHONY: default all clean realclean install depend
43 .SUFFIXES: .d .h .c .o
45 .SILENT: $(DFILES) clean # hides output
48 $(SHELL) -ec '$(CXX) $(DEPENDFLAGS) $(INCLUDES) $(X_INCLUDES) $< | sed '\''s/$*\\.o[ :]*/& $@/g'\'' > $@'
52 $(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
55 $(TARGET): $(DFILES) $(OFILES)
58 rm -f $(OFILES) $(DFILES)
61 rm -f $(TARGET) *.flc TAGS