summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-09 16:11:01 +0000
committerErik Troan <ewt@redhat.com>2000-05-09 16:11:01 +0000
commit6d13335638af2c7e633f66b31f26ae49a2acc189 (patch)
treeb87f7ea4bca75bde8bac0cd076924ad2ea2b9314
parenta699c519a2ff039cb64e6e6317aa7084d9fabd3a (diff)
downloadanaconda-6d13335638af2c7e633f66b31f26ae49a2acc189.tar.gz
anaconda-6d13335638af2c7e633f66b31f26ae49a2acc189.tar.xz
anaconda-6d13335638af2c7e633f66b31f26ae49a2acc189.zip
added dependency stuff
-rw-r--r--isys/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/isys/Makefile b/isys/Makefile
index 167e0a7a1..966f6b595 100644
--- a/isys/Makefile
+++ b/isys/Makefile
@@ -6,6 +6,7 @@ CFLAGS = -I/usr/include/python1.5 -I.. -g -Wall
OBJECTS = nfsmount.o dns.o mount_clnt.o mount_xdr.o imount.o \
smp.o moduleinfo.o devnodes.o cpio.o probe.o uncpio.o \
lang.o
+SOURCES = $(patsubst %.o,%.c,$(OBJECTS))
STATICOBJS = otherinsmod.o
STATICLIBS = /usr/lib/python1.5/site-packages/kudzumodule.so
LOADLIBES = -lbz2 -lresolv -lz -lpci -lpopt -L../pump -lpump -lext2fs
@@ -18,8 +19,17 @@ endif
ifeq ($(ARCH),sparc)
PYMODULES += _silo.so
+SOURCSE += silo.c
endif
+ifeq (.depend,$(wildcard .depend))
+TARGET=all
+else
+TARGET=depend all
+endif
+
+everything: $(TARGET)
+
all: subdirs $(PYMODULES) libisys.a
_isys.so: isys.o $(OBJECTS) $(STATICLIBS)
@@ -39,3 +49,10 @@ install: all
subdirs:
for d in $(SUBDIRS); do make -C $$d; done
+
+depend:
+ $(CPP) -M $(CFLAGS) $(SOURCES) > .depend
+
+ifeq (.depend,$(wildcard .depend))
+include .depend
+endif