patch-1.3.40 linux/Makefile
Next file: linux/Rules.make
Previous file: linux/net/ipv4/tcp.c
Back to the patch index
Back to the overall index
- Lines: 50
- Date:
Sat Nov 11 13:29:37 1995
- Orig file:
v1.3.39/linux/Makefile
- Orig date:
Thu Nov 9 11:23:46 1995
diff -u --recursive --new-file v1.3.39/linux/Makefile linux/Makefile
@@ -1,6 +1,6 @@
VERSION = 1
PATCHLEVEL = 3
-SUBLEVEL = 39
+SUBLEVEL = 40
ARCH = i386
@@ -223,12 +223,14 @@
net: dummy
$(MAKE) linuxsubdirs SUBDIRS=net
+MODFLAGS = -DMODULE
+
ifdef CONFIG_MODVERSIONS
-MODV = -DMODVERSIONS
+MODFLAGS += -DMODVERSIONS -include $(HPATH)/linux/modversions.h
endif
modules: include/linux/version.h
- @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i CFLAGS="$(CFLAGS) -DMODULE $(MODV)" modules; done
+ @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i CFLAGS="$(CFLAGS) $(MODFLAGS)" modules; done
modules_install:
@( \
@@ -280,17 +282,18 @@
cd .. && tar cf - linux | gzip -9 > backup.gz
sync
-#depend dep: .hdepend
-depend dep: archdep .hdepend include/linux/version.h
+dep-files: archdep .hdepend include/linux/version.h
$(AWK) -f scripts/depend.awk init/*.c > .tmpdepend
set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i fastdep; done
mv .tmpdepend .depend
+
+MODVERFILE :=
+
ifdef CONFIG_MODVERSIONS
- @echo updating $(TOPDIR)/include/linux/modversions.h
- @(cd $(TOPDIR)/include/linux/modules; for f in *.ver;\
- do echo "#include <linux/modules/$${f}>"; done) \
- > $(TOPDIR)/include/linux/modversions.h
+MODVERFILE := $(TOPDIR)/include/linux/modversions.h
endif
+
+depend dep: dep-files $(MODVERFILE)
ifdef CONFIGURATION
..$(CONFIGURATION):
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this