#
# 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
SUBDIRS = adt common debug ident ir tr tv
-INCLUDES = -I../adt -I../common -I../debug -I../ident -I../../include \
+INCLUDES = -I../adt -I../common -I../debug -I../ident -I../include \
-I../ir -I../tr -I../tv
OFILES =
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
$(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) ..
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