1 # Hey, emacs, this is a -*- makefile -*-
3 # Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
5 # Author: Goetz Lindenmaier
7 # Makefile for tr -- the type representation
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 DISTRIBMEMBERS = entity.m type.m typewalk.m
26 MEMBERS = $(DISTRIBMEMBERS) mangle.m
28 CFILES = $(MEMBERS:.m=.c)
30 HFILES = $(MEMBERS:.m=.h)
31 HFILES += type_or_entity.h
32 HFILES += common.h debug.h gmp.h host.h ident.h irgraph.h \
33 irgwalk.h irmode.h irnode.h irop.h label.h misc.h \
34 obst.h pset.h set.h tv.h xprintf.h xp_help.h entity_t.h
36 DISTRIB = $(DISTRIBMEMBERS:.m=.h)
38 OFILES = $(MEMBERS:%.m=../objects/%.o)
40 DFILES = $(MEMBERS:.m=.d)
44 .PHONY: default all clean realclean install depend
45 .SUFFIXES: .d .h .c .o
47 .SILENT: $(DFILES) clean # hides output
49 $(TARGET): $(DFILES) $(OFILES)
52 $(SHELL) -ec '$(CXX) $(DEPENDFLAGS) $(INCLUDES) $(X_INCLUDES) $< | sed '\''s/\($*\)\.o[ :]*/\.\.\/objects\/\1.o $@ : /g'\'' > $@'
56 $(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
59 cp $(DISTRIB) ../../include
62 rm -f $(OFILES) $(DFILES)
65 rm -f $(TARGET) *.flc TAGS