summaryrefslogtreecommitdiffstats
path: root/balkan
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-09 16:19:05 +0000
committerErik Troan <ewt@redhat.com>2000-05-09 16:19:05 +0000
commit3fc9a2f66baad04f9e08e4f4d876cd412de07918 (patch)
treedbddcde5f95280c762025aa13901d86ba0fd331c /balkan
parent69898aa1dfe06940a4d7c7055d4906e549f7679a (diff)
downloadanaconda-3fc9a2f66baad04f9e08e4f4d876cd412de07918.tar.gz
anaconda-3fc9a2f66baad04f9e08e4f4d876cd412de07918.tar.xz
anaconda-3fc9a2f66baad04f9e08e4f4d876cd412de07918.zip
added dependencies
Diffstat (limited to 'balkan')
-rw-r--r--balkan/Makefile20
1 files changed, 19 insertions, 1 deletions
diff --git a/balkan/Makefile b/balkan/Makefile
index 9a97e00a3..ef891b497 100644
--- a/balkan/Makefile
+++ b/balkan/Makefile
@@ -3,16 +3,26 @@ include ../Makefile.inc
#PYTHONLIBDIR = $(DESTDIR)/usr/lib/python1.5/site-packages
OBJECTS = rw.o dos.o sun.o bsdlabel.o
+CFLAGS=-I/usr/include/python1.5
TARGET = libbalkan.a
+ifeq (.depend,$(wildcard .depend))
+TARGET=all
+else
+TARGET=depend all
+endif
+
+everything: $(TARGET)
+
+
all: $(TARGET) _balkanmodule.so
_balkanmodule.so: _balkanmodule.o libbalkan.a
gcc -shared -o $@ _balkanmodule.o libbalkan.a
_balkanmodule.o: _balkanmodule.c balkan.h
- gcc $(CFLAGS) -I/usr/include/python1.5 -c -fPIC -o $@ $<
+ gcc $(CFLAGS) -c -fPIC -o $@ $<
libbalkan.a: libbalkan.a($(OBJECTS))
@@ -26,3 +36,11 @@ sun.o: sun.h
install: all
mkdir -p $(DESTDIR)/$(PYTHONLIBDIR)
install _balkanmodule.so $(DESTDIR)/$(PYTHONLIBDIR)
+
+
+depend:
+ $(CPP) -M $(CFLAGS) *.c > .depend
+
+ifeq (.depend,$(wildcard .depend))
+include .depend
+endif