summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-10-04 22:49:31 +0000
committerErik Troan <ewt@redhat.com>2001-10-04 22:49:31 +0000
commit148ce9e559d1fd8ffb845447157a37a568925060 (patch)
tree51b3b48cdcc0139e62814579734a3cad4d2affb4 /scripts/Makefile
parent8457357cc5832bf84ddaeb44162edcec5052e582 (diff)
downloadanaconda-148ce9e559d1fd8ffb845447157a37a568925060.tar.gz
anaconda-148ce9e559d1fd8ffb845447157a37a568925060.tar.xz
anaconda-148ce9e559d1fd8ffb845447157a37a568925060.zip
get pcitable right, work for non 2.4.2 kernels
Diffstat (limited to 'scripts/Makefile')
-rw-r--r--scripts/Makefile90
1 files changed, 74 insertions, 16 deletions
diff --git a/scripts/Makefile b/scripts/Makefile
index ea829df7e..eeb24ee55 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -1,16 +1,74 @@
-include ../Makefile.inc
-
-all:
-
-install:
- install -m 755 upd-instroot $(DESTDIR)/$(RUNTIMEDIR)
- install -m 755 mk-images* $(DESTDIR)/$(RUNTIMEDIR)
- install -m 755 buildinstall $(DESTDIR)/$(RUNTIMEDIR)
- install -m 755 splitdistro $(DESTDIR)/$(RUNTIMEDIR)
- install -m 755 scrubtree $(DESTDIR)/$(RUNTIMEDIR)
- install -m 755 pythondeps $(DESTDIR)/$(RUNTIMEDIR)
- install -m 755 pkgorder $(DESTDIR)/$(RUNTIMEDIR)
- install -m 755 check-repository.py $(DESTDIR)/$(RUNTIMEDIR)
- ./genlocalelist > $(DESTDIR)/$(ANACONDADATADIR)/locale-list
-
-depend:
+##
+##
+## Simple makefile for building a Linux kernel module outside
+## the kernel source tree.
+## Copyright 2000 Jeff Garzik
+##
+##
+
+##
+## Your kernel source tree...
+##
+
+MODULE= xircom_cb
+
+
+
+# standard location of source tree. Make sure no spaces/tabs
+# at the end of the line!
+TOPDIR=/lib/modules/`uname -r`/build
+
+# jgarzik's kernel source tree
+# TOPDIR=/spare/cvs/linux_2_4
+
+
+
+KINCLUDES= $(TOPDIR)/include
+
+
+#
+# Choose only i386, i486, i586, or i686 here. And your gcc compiler
+# may not support i586 or i686, so make sure...
+#
+
+CPUFLAGS= -march=`uname -m`
+
+#
+# It is always recommended to use CONFIG_MODVERSIONS where possible.
+# If you do not use CONFIG_MODVERSIONS, comment out the line below.
+#
+
+MODVERSIONS= -DMODVERSIONS -include $(KINCLUDES)/linux/modversions.h
+
+
+LD= ld
+CC= gcc
+
+CFLAGS= \
+ -D__KERNEL__ -I$(KINCLUDES) $(CPUFLAGS) \
+ -Wall -Wstrict-prototypes -Werror \
+ -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe \
+ -mpreferred-stack-boundary=2 \
+ -DMODULE $(MODVERSIONS)
+
+OBJS=
+
+
+default:: all
+
+all:: $(MODULE).o
+
+checkdep:
+ @if [ ! -f .depend ]; then make dep ; make ; exit 0; fi
+
+clean:
+ rm -f .depend $(OBJS) $(MODULE).o
+
+dep:
+ $(CC) $(CFLAGS) -M *.c > .depend
+
+ifneq ($(wildcard .depend),)
+include .depend
+endif
+
+