diff options
author | Matt Wilson <msw@redhat.com> | 2000-06-26 22:36:10 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-06-26 22:36:10 +0000 |
commit | 5483929a049cff84b9321217da4efa5a035bc463 (patch) | |
tree | e73af5fddc843658f093f6e60cc66f1b34f96878 /isys/Makefile | |
parent | 53030871d42c5aa0638704bf3e4efd9c1b8070e6 (diff) | |
download | anaconda-5483929a049cff84b9321217da4efa5a035bc463.tar.gz anaconda-5483929a049cff84b9321217da4efa5a035bc463.tar.xz anaconda-5483929a049cff84b9321217da4efa5a035bc463.zip |
patch from hj
Diffstat (limited to 'isys/Makefile')
-rw-r--r-- | isys/Makefile | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/isys/Makefile b/isys/Makefile index 89e37c485..c02276d75 100644 --- a/isys/Makefile +++ b/isys/Makefile @@ -2,8 +2,8 @@ include ../Makefile.inc ARCH := $(patsubst i%86,i386,$(shell uname -m)) ARCH := $(patsubst sparc%,sparc,$(ARCH)) -CFLAGS = -I/usr/include/python1.5 -I.. -g -Wall -OBJECTS = nfsmount.o dns.o mount_clnt.o mount_xdr.o imount.o \ +CFLAGS = -I/usr/include/python1.5 -I.. -Wall -O2 -g -DHAVE_NFS -DHAVE_NFSV3 +OBJECTS = nfsmount.o dns.o nfsmount_clnt.o nfsmount_xdr.o imount.o \ smp.o moduleinfo.o devnodes.o cpio.o probe.o uncpio.o \ lang.o SOURCES = $(patsubst %.o,%.c,$(OBJECTS)) isys.c @@ -13,6 +13,8 @@ LOADLIBES = -lbz2 -lresolv -lz -lpci -lpopt -L../pump -lpump -lext2fs PYMODULES = _isys.so SUBDIRS = modutils +GENERATED = nfs_mountversion.h + ifeq ($(ARCH),sparc) PYMODULES += _silo.so SOURCES += silo.c @@ -37,16 +39,22 @@ _silo.so: silo.c libisys.a: libisys.a($(OBJECTS) $(STATICOBJS)) clean: - rm -f *.o *.so *.a *.pyc $(TARGET) $(OBJECTS) + rm -f *.o *.so *.a *.pyc $(TARGET) $(OBJECTS) $(GENERATED) for d in $(SUBDIRS); do make -C $$d clean; done install: all - install $(PYMODULES) isys.py $(DESTDIR)/$(PYTHONLIBDIR) + install -s $(PYMODULES) $(DESTDIR)/$(PYTHONLIBDIR) + install isys.py $(DESTDIR)/$(PYTHONLIBDIR) subdirs: for d in $(SUBDIRS); do make -C $$d; done -depend: +nfsmount.o: nfs_mountversion.h + +nfs_mountversion.h: /usr/include/linux/nfs_mount.h + grep NFS_MOUNT_VERSION $< | sed -e 's/NFS/KERNEL_NFS/' > $@ + +depend: nfs_mountversion.h $(CPP) -M $(CFLAGS) $(SOURCES) > .depend ifeq (.depend,$(wildcard .depend)) |