diff options
Diffstat (limited to 'edd/Makefile')
-rw-r--r-- | edd/Makefile | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/edd/Makefile b/edd/Makefile index 0097864c2..19d3860c6 100644 --- a/edd/Makefile +++ b/edd/Makefile @@ -1,15 +1,30 @@ -CFLAGS=-Wall -O -g -fpic# -DDEBUG +CFLAGS=-Wall -O -g -fpic -I/usr/include/python1.5# -DDEBUG TARGETS=eddmodule.so libedd.a(edd.o lrmi.o) +ifeq (.depend,$(wildcard .depend)) +TARGET=all +else +TARGET=depend all +endif + +everything: $(TARGET) + all: $(TARGETS) edd: lrmi.c edd.c gcc -DDEBUG -o edd lrmi.c edd.c eddmodule.so: pyedd.c edd.o lrmi.o - gcc -c -o pyedd.o -fpic pyedd.c -I/usr/include/python1.5 + gcc -c -o pyedd.o -fpic pyedd.c gcc -shared -g -o $@ pyedd.o edd.o lrmi.o clean: rm -f *.o *.so *~ core + +depend: + $(CPP) -M $(CFLAGS) *.c > .depend + +ifeq (.depend,$(wildcard .depend)) +include .depend +endif |