all the autoconfig stuff
[libfirm] / ir / common / Makefile
index d401ff3..33a340d 100644 (file)
@@ -15,29 +15,32 @@ DEPENDFLAGS = -M
 LIBPATH     =
 LIBS        =
 X_LIBS      =
-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
 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 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 \
           ../objects/xgprintf.o \
           ../objects/xoprintf.o \
-          ../objects/strerror.o
 
 DFILES = $(MEMBERS:.m=.d)
 
@@ -57,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)