summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-09 16:22:26 +0000
committerErik Troan <ewt@redhat.com>2000-05-09 16:22:26 +0000
commitcfa8b82bde62c0754d8074ac7eff15b15563fe6b (patch)
tree2a136d995f29c767d5642bbb4f6c7eae51cf9d72
parent3fc9a2f66baad04f9e08e4f4d876cd412de07918 (diff)
downloadanaconda-cfa8b82bde62c0754d8074ac7eff15b15563fe6b.tar.gz
anaconda-cfa8b82bde62c0754d8074ac7eff15b15563fe6b.tar.xz
anaconda-cfa8b82bde62c0754d8074ac7eff15b15563fe6b.zip
added depends stuff
-rw-r--r--edd/Makefile19
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