testprograms:
$(MAKE) -C testprograms
+lib:
+ $(MAKE) -C ir lib
+
clean:
for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done
realclean:
for i in $(SUBDIRS); do $(MAKE) -C $$i realclean; done
- rm -f libfirm.a core
+ rm -f libfirm.a core include/*
TAGFILES = $(shell find . -name '*.c' -o -name '*.h')
#
# 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
all: TAGS $(TARGET)
+lib:
+ for i in $(SUBDIRS); do $(MAKE) -C $$i lib; done
+
clean:
for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done
$(COMPILE.c) $(INCLUDES) -DPSET -o $@ $<
# $(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
+lib:
+
clean:
rm -f $(OFILES) $(DFILES)
SHELL = /bin/sh
MAKE = /usr/bin/make
-MEMBERS = common.m firm.m panic.m
+DISTRIBMEMBERS = common.m firm.m
+MEMBERS = $(DISTRIBMEMBERS) panic.m
CFILES = $(MEMBERS:.m=.c)
CFILES += xfprintf.c xfprintf.c xfprintf.c
HFILES = $(MEMBERS:.m=.h)
HFILES += tune.h xp_help.h xprintf.h misc.h
HFILES += common.h debug.h entity.h gmp.h host.h ident.h irgraph.h \
- irmode.h irnode.h irop.h irprog.h label.h misc.h obst.h pset.h set.h \
- tv.h type.h xprintf.h xp_help.h
+ irmode.h irnode.h irop.h irprog.h label.h misc.h obst.h \
+ pset.h set.h tv.h type.h xprintf.h xp_help.h
+
+DISTRIB = $(DISTRIBMEMBERS:.m=.h)
OFILES = $(MEMBERS:%.m=../objects/%.o)
OFILES += ../objects/xfprintf.o \
../objects/%.o: %.c
$(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
+lib:
+ cp $(DISTRIB) ../../include
+
clean:
rm -f $(OFILES) $(DFILES)
SHELL = /bin/sh
MAKE = /usr/bin/make
-MEMBERS = debug.m
+DISTRIBMEMBERS =
+MEMBERS = $(DISTRIBMEMBERS) debug.m
CFILES = $(MEMBERS:.m=.c)
HFILES = $(MEMBERS:.m=.h)
HFILES += misc.h host.h
+DISTRIB = $(DISTRIBMEMBERS:.m=.h)
+
OFILES = $(MEMBERS:%.m=../objects/%.o)
DFILES = $(MEMBERS:.m=.d)
$(TARGET): $(DFILES) $(OFILES)
+lib:
+ cp $(DISTRIB) ../../include/
+
clean:
rm -f $(OFILES) $(DFILES)
SHELL = /bin/sh
MAKE = /usr/bin/make
-MEMBERS = ident.m
+DISTRIBMEMBERS = ident.m
+MEMBERS = $(DISTRIBMEMBERS)
CFILES = $(MEMBERS:.m=.c)
HFILES += array.h cookies.h debug.h host.h misc.h set.h tune.h xprintf.h \
xp_help.h
+DISTRIB = $(DISTRIBMEMBERS:.m=.h)
+
OFILES = $(MEMBERS:%.m=../objects/%.o)
DFILES = $(MEMBERS:.m=.d)
../objects/%.o: %.c
$(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
+lib:
+ cp $(DISTRIB) ../../include
$(TARGET): $(DFILES) $(OFILES)
SHELL = /bin/sh
MAKE = /usr/bin/make
-MEMBERS = ircons.m irdump.m irflag.m irgmod.m irgraph.m irgopt.m \
+DISTRIBMEMBERS = ircons.m irdump.m irflag.m irgmod.m irgraph.m irgopt.m \
irgwalk.m irmode.m irnode.m irop.m iropt.m irprog.m irvrfy.m
+MEMBERS = $(DISTRIBMEMBERS)
CFILES = $(MEMBERS:.m=.c)
HFILES = $(MEMBERS:.m=.h)
-HFILES += irnode_t.h
HFILES += array.h common.h cookies.h debug.h entity.h gmp.h \
host.h ident.h label.h misc.h obst.h pdeq.h pset.h \
set.h tune.h tv.h type.h xprintf.h xp_help.h irnode2.h
+DISTRIB = $(DISTRIBMEMBERS:.m=.h)
+
OFILES = $(MEMBERS:%.m=../objects/%.o)
DFILES = $(MEMBERS:.m=.d)
../objects/%.o: %.c
$(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
+lib:
+ cp $(DISTRIB) ../../include
+
clean:
rm -f $(OFILES) $(DFILES)
SHELL = /bin/sh
MAKE = /usr/bin/make
-MEMBERS = entity.m mangle.m type.m typewalk.m
+DISTRIBMEMBERS = entity.m type.m typewalk.m
+MEMBERS = $(DISTRIBMEMBERS) mangle.m
CFILES = $(MEMBERS:.m=.c)
irgwalk.h irmode.h irnode.h irop.h label.h misc.h \
obst.h pset.h set.h tv.h xprintf.h xp_help.h entity_t.h
+DISTRIB = $(DISTRIBMEMBERS:.m=.h)
+
OFILES = $(MEMBERS:%.m=../objects/%.o)
DFILES = $(MEMBERS:.m=.d)
../objects/%.o: %.c
$(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
+lib:
+ cp $(DISTRIB) ../../include
+
$(TARGET): $(DFILES) $(OFILES)
SHELL = /bin/sh
MAKE = /usr/bin/make
-MEMBERS = tv.m
+DISTRIBMEMBERS = tv.m
+MEMBERS = $(DISTRIBMEMBERS)
CFILES = $(MEMBERS:.m=.c)
HFILES += common.h debug.h entity.h gmp.h ident.h irmode.h obst.h \
pset.h tune.h type.h xprintf.h xp_help.h
+DISTRIB = $(DISTRIBMEMBERS:.m=.h)
+
OFILES = $(MEMBERS:%.m=../objects/%.o)
DFILES = $(MEMBERS:.m=.d)
../objects/%.o: %.c
$(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
+lib:
+ cp $(DISTRIB) ../../include
$(TARGET): $(DFILES) $(OFILES)
%.o: %.c
gcc -c $(INCDIRS) -g $<
+orb:
+ ls
+
all: empty const_eval_example \
if_example if_else_example if_while_example cond_example \
call_str_example memory_example array-stack_example \