1 # Hey, emacs, this is a -*- makefile -*-
2 ## Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
4 # Author: Goetz Lindenmaier
10 CFLAGS = -pipe -Wall # -ansi -pedantic
18 INCLUDES = -I../adt -I../common -I../debug -I../ident -I../include \
19 -I../ir -I../tr -I../tv
25 MEMBERS = common.m firm.m panic.m
27 CFILES = $(MEMBERS:.m=.c)
28 CFILES += xfprintf.c xfprintf.c xfprintf.c
30 HFILES = $(MEMBERS:.m=.h)
31 HFILES += tune.h xp_help.h xprintf.h misc.h
32 HFILES += common.h debug.h entity.h gmp.h host.h ident.h irgraph.h \
33 irmode.h irnode.h irop.h label.h misc.h obst.h pset.h set.h \
34 tv.h type.h xprintf.h xp_help.h
36 OFILES = $(MEMBERS:%.m=../objects/%.o)
37 OFILES += ../objects/xfprintf.o \
38 ../objects/xgprintf.o \
39 ../objects/xoprintf.o \
42 DFILES = $(MEMBERS:.m=.d)
46 .PHONY: default all clean realclean install depend
47 .SUFFIXES: .d .h .c .o
49 .SILENT: $(DFILES) clean # hides output
51 $(TARGET): $(DFILES) $(OFILES)
54 $(SHELL) -ec '$(CXX) $(DEPENDFLAGS) $(INCLUDES) $(X_INCLUDES) $< | sed '\''s/\($*\)\.o[ :]*/\.\.\/objects\/\1.o $@ : /g'\'' > $@'
58 $(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
61 rm -f $(OFILES) $(DFILES)
64 rm -f $(TARGET) *.flc TAGS