1 # Hey, emacs, this is a -*- makefile -*-
2 ## Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
4 # Author: Goetz Lindenmaier
6 # Makefile for debug -- debugging of compiler or compiled program??
10 CFLAGS = -pipe -Wall # -ansi -pedantic
18 INCLUDES = -I../adt -I../common -I../debug
28 CFILES = $(MEMBERS:.m=.c)
30 HFILES = $(MEMBERS:.m=.h)
31 HFILES += misc.h host.h
33 OFILES = $(MEMBERS:%.m=../objects/%.o)
35 DFILES = $(MEMBERS:.m=.d)
39 .PHONY: default all clean realclean install depend
40 .SUFFIXES: .d .h .c .o
42 .SILENT: $(DFILES) clean # hides output
45 $(SHELL) -ec '$(CXX) $(DEPENDFLAGS) $(INCLUDES) $(X_INCLUDES) $< | sed '\''s/\($*\)\.o[ :]*/\.\.\/objects\/\1.o $@ : /g'\'' > $@'
49 $(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
52 $(TARGET): $(DFILES) $(OFILES)
55 rm -f $(OFILES) $(DFILES)
58 rm -f $(TARGET) *.flc TAGS