all the autoconfig stuff
[libfirm] / ir / common / Makefile
index 5dba7c9..33a340d 100644 (file)
@@ -22,16 +22,20 @@ X_INCLUDES  =
 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 +=  tune.h xp_help.h xprintf.h misc.h bool.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)
+DISTRIB += bool.h
 
 OFILES = $(MEMBERS:%.m=../objects/%.o)
 OFILES +=  ../objects/xfprintf.o \
@@ -56,10 +60,14 @@ $(TARGET): $(DFILES) $(OFILES)
 ../objects/%.o:    %.c
        $(CXX) $(CFLAGS) $(CXXFLAGS) $(COPTFLAGS) $(INCLUDES) $(X_INCLUDES) -c $< -o $@
 
+lib:
+       cp $(DISTRIB) ../../include
+
 clean:
        rm -f $(OFILES) $(DFILES)
 
 realclean:     clean
-       rm -f $(TARGET) *.flc TAGS
+       rm -f $(TARGET) *.flc TAGS \#*
+       rm -rf auto/
 
 -include $(DFILES)