1 # Hey, emacs, this is a -*- makefile -*-
2 ## Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
4 # Author: Goetz Lindenmaier
6 # Makefile for adt -- abstract data types
9 CFLAGS = -pipe -Wall # -ansi -pedantic
17 INCLUDES = -I../adt -I../common -I../debug
23 MEMBERS = array.m pdeq.m set.m debug.m
25 CFILES = $(MEMBERS:.m=.c)
28 HFILES = $(MEMBERS:.m=.h)
29 HFILES += cookies.h host.h obst.h pset.h
30 HFILES += misc.h tune.h debug.h
32 OFILES = $(MEMBERS:%.m=../objects/%.o)
33 OFILES += ../objects/xmalloc.o ../objects/pset.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
44 $(TARGET): $(DFILES) $(OFILES)
47 $(SHELL) -ec '$(CXX) $(DEPENDFLAGS) $(INCLUDES) $(X_INCLUDES) $< | sed '\''s/\($*\)\.o[ :]*/\.\.\/objects\/\1.o $@ : /g'\'' > $@'
51 $(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
53 # a hack to force recompilation
54 ../objects/pset.o : set.c pset.h ../objects/set.o
55 $(COMPILE.c) $(INCLUDES) -DPSET -o $@ $<
56 # $(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
61 rm -f $(OFILES) $(DFILES)
64 rm -f $(TARGET) *.flc TAGS \#*