aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.rules
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>1997-10-06 21:05:49 +0000
committerH. Peter Anvin <hpa@zytor.com>1997-10-06 21:05:49 +0000
commitbddd43e289c8b8b62d7cb3f1f7eb27ca67cae28e (patch)
treeaac5e4a4b924cb13a54cc0760e99f349ea36bd12 /Makefile.rules
downloadautofs3-bddd43e289c8b8b62d7cb3f1f7eb27ca67cae28e.tar.gz
autofs3-bddd43e289c8b8b62d7cb3f1f7eb27ca67cae28e.tar.xz
autofs3-bddd43e289c8b8b62d7cb3f1f7eb27ca67cae28e.zip
Initial revision
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules66
1 files changed, 66 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
new file mode 100644
index 0000000..f340719
--- /dev/null
+++ b/Makefile.rules
@@ -0,0 +1,66 @@
+# -*- makefile -*-
+#
+# Makefile rules
+#
+
+# Compilers, linkers and flags
+# The STRIP defined here *must not* remove any dynamic-loading symbols
+
+ifdef DEBUG
+CFLAGS = -O2 -g -DDEBUG
+LDFLAGS = -g
+STRIP = :
+else
+CFLAGS = -O3 -fomit-frame-pointer -Wall
+LDFLAGS = -s
+STRIP = strip --strip-debug
+endif
+
+CC = gcc
+CXX = g++
+CXXFLAGS = $(CFLAGS)
+LD = ld
+SOLDFLAGS = -shared
+
+# Special parameters for glibc
+# If you're compiling for glibc (libc 6), uncomment these
+#YPLIBS = -lnsl
+
+# Directory for autofs modules
+autofslibdir = $(DESTDIR)/usr/lib/autofs
+
+# Directory to install modules
+moddir = $(DESTDIR)/lib/modules/`uname -r`
+fsmoddir = $(moddir)/fs
+
+# Where to install the automount program
+sbindir = $(DESTDIR)/usr/sbin
+
+# Where to install man pages
+mandir = $(DESTDIR)/usr/man
+
+# Kernel compilation rules (this is for "make kernel" to work; not needed
+# if you're compiling the autofs kernel code as a part of the kernel itself.
+# For "make kernel" to work you need the kernel code to be in the "kernel"
+# directory; not included with the autofs distribution.)
+
+# 1. Comment this out if your kernel is *not* SMP
+KFLAGS = -D__SMP__
+# 2. Set this to your kernel include files
+KINCLUDE = /usr/src/linux/include
+# 3. Comment this out if you do *not* use versioned modules
+MODFLAGS = -DMODVERSIONS -include $(KINCLUDE)/linux/modversions.h
+
+# Standard rules
+
+.SUFFIXES: .c .o .s .so
+
+.c.o:
+ $(CC) $(CFLAGS) -c $<
+
+.c.s:
+ $(CC) $(CFLAGS) -S $<
+
+.c.so:
+ $(CC) $(SOLDFLAGS) $(CFLAGS) -o $*.so $<
+ $(STRIP) $*.so