1 # Hey, emacs, this is a -*- makefile -*-
3 # Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
5 # Author: Goetz Lindenmaier
7 # Makefile for IR library.
9 # This makefile descends to all directories listed in INCLUDES and to
10 # testprograms and calls make with the corresponding target there.
11 # After returning it builds a library out of the firm files.
12 # Further it updates the TAGS file with each recompilation
14 SUBDIRS = adt common debug ident ir tr tv
15 INCLUDES = -I../adt -I../common -I../debug -I../ident -I../include \
16 -I../ir -I../tr -I../tv
21 MAKE = /usr/bin/make -k
25 CFLAGS = -pipe -Wall # -ansi -pedantic # -g
26 COPTFLAGS = -O3 -ffast-math # -fno-caller-saves
30 .PHONY: default all clean realclean install depend $(TARGET)
34 for i in $(SUBDIRS); do $(MAKE) "INCLUDES=$(INCLUDES)" "CXXFLAGS=-g" -C $$i; done
35 $(AR) $(TARGET) objects/*.o
39 for i in $(SUBDIRS); do $(MAKE) "CFLAGS=$(CFLAGS) -g INCLUDES=$(INCLUDES)" -C $$i; done
44 for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done
47 for i in $(SUBDIRS); do $(MAKE) -C $$i realclean; done
51 for i in $(SUBDIRS); do \
55 "INCLUDES=$(INCLUDES)" -C $$i; \
59 TAGFILES = $(shell find . -name '*.c' -o -name '*.h')