summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
Diffstat (limited to 'isys')
-rw-r--r--isys/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/isys/Makefile b/isys/Makefile
index 7810471a2..26f8cd0be 100644
--- a/isys/Makefile
+++ b/isys/Makefile
@@ -9,18 +9,19 @@ OBJECTS = nfsmount.o nfsmount_clnt.o nfsmount_xdr.o imount.o \
lang.o isofs.o pdc.o
SOBJECTS = $(patsubst %.o,%.lo,$(OBJECTS))
SOURCES = $(patsubst %.o,%.c,$(OBJECTS)) isys.c
+DOBJECTS = $(patsubst %.o,%.do,$(OBJECTS) $(STATICOBJS))
STATICOBJS = otherinsmod.o
LOADLIBES = -lresolv -lz -lpci -lpopt -lpump -lext2fs -L./gzlib -lgunzip
PYMODULES = _isys.so
SUBDIRS = modutils gzlib
DIET = diet
-DOBJECTS = $(patsubst %.o,%.do,$(OBJECTS) $(STATICOBJS))
-
GENERATED = nfs_mountversion.h
+STATICLIB=libisys.a($(OBJECTS))
+
ifeq ($(ARCH),i386)
-DIETLIB=libisys-diet.a
+STATICLIB=libisys-diet.a($(DOBJECTS))
endif
ifeq ($(ARCH),sparc)
@@ -36,7 +37,7 @@ endif
everything: $(TARGET)
-all: subdirs $(PYMODULES) libisys.a $(DIETLIB)
+all: subdirs $(PYMODULES) libisys.a
%.lo: %.c
$(CC) -c $(CFLAGS) -fPIC -o $@ $<
@@ -52,10 +53,9 @@ _silo.so: silo.c
libisys.a: libisys.a($(OBJECTS) $(STATICOBJS))
-libisys-diet.a: libisys-diet.a($(DOBJECTS))
-
clean:
- rm -f *.o *.so *.lo *.a *.pyc $(TARGET) $(SOBJECTS) $(OBJECTS) $(GENERATED)
+ rm -f *.o *.so *.lo *.a *.pyc $(TARGET) $(SOBJECTS) $(OBJECTS)
+ rm -f $(GENERATED) $(DOBJECTS)
for d in $(SUBDIRS); do make -C $$d clean; done
install: all