From 6d13335638af2c7e633f66b31f26ae49a2acc189 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Tue, 9 May 2000 16:11:01 +0000 Subject: added dependency stuff --- isys/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 -- cgit