X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2FMakefile;h=db6786c5cb496979f2cacde146815dbef5eb324e;hb=bcc5757a59bb6e319522b4bddc7efe34f6eca949;hp=12ca79c029e99499fb904bbc7d14257599ee3b2a;hpb=efbeaff549fcc6015da255ed4d453a95937ff0fd;p=libfirm diff --git a/ir/Makefile b/ir/Makefile index 12ca79c02..db6786c5c 100644 --- a/ir/Makefile +++ b/ir/Makefile @@ -6,8 +6,8 @@ # # Makefile for IR library. -# This makefile descends to all directories listed in INCLUDES and to -# testprograms and calls make with the corresponding target there. +# This makefile descends to all directories listed in INCLUDES +# and calls make with the corresponding target there. # After returning it builds a library out of the firm files. # Further it updates the TAGS file with each recompilation @@ -22,7 +22,7 @@ MAKE = /usr/bin/make -k SHELL = /bin/sh CXX = gcc -CFLAGS = -pipe -Wall #-ansi -pedantic # -g +CFLAGS = -pipe -Wall # -ansi -pedantic # -g COPTFLAGS = -O3 -ffast-math # -fno-caller-saves TARGET = libfirm.a @@ -31,7 +31,7 @@ TARGET = libfirm.a $(TARGET): # mkdir objects - for i in $(SUBDIRS); do $(MAKE) "INCLUDES=$(INCLUDES)" -C $$i; done + for i in $(SUBDIRS); do $(MAKE) "INCLUDES=$(INCLUDES)" "CXXFLAGS=-g" -C $$i; done $(AR) $(TARGET) objects/*.o mv $(TARGET) .. @@ -40,15 +40,14 @@ debug: all: TAGS $(TARGET) -#testprograms: -# $(MAKE) -C testprograms +lib: + for i in $(SUBDIRS); do $(MAKE) -C $$i lib; done clean: for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done realclean: for i in $(SUBDIRS); do $(MAKE) -C $$i realclean; done - $(MAKE) -C testprograms realclean rm -f $(TARGET) core profile: realclean