patch-2.1.63 linux/drivers/sound/lowlevel/Makefile
Next file: linux/drivers/sound/lowlevel/README.awe
Previous file: linux/drivers/sound/lowlevel/ChangeLog.awe
Back to the patch index
Back to the overall index
-  Lines: 34
-  Date:
Tue Oct 28 02:10:48 1997
-  Orig file: 
v2.1.62/linux/drivers/sound/lowlevel/Makefile
-  Orig date: 
Tue Mar  4 10:25:25 1997
diff -u --recursive --new-file v2.1.62/linux/drivers/sound/lowlevel/Makefile linux/drivers/sound/lowlevel/Makefile
@@ -15,6 +15,13 @@
 endif
 endif
 
+ifndef TOPDIR
+TOPDIR=/usr/src/linux
+endif
+
+.c.o:
+	$(CC) $(CFLAGS) -c $<
+
 lowlevel.o:	$(OBJS)
 	$(LD) -r -o lowlevel.o $(OBJS)
 
@@ -35,10 +42,16 @@
 dep:
 	$(CPP) -M $(CFLAGS) -I. *.c > .depend
 
-ifdef HOSTCC
-include $(TOPDIR)/Rules.make
-else
+ifndef HOSTCC
+#
+#	Running outside the kernel build.
+#
+CC	= gcc
+HOSTCC	= gcc
+CFLAGS	= -O2 -D__KERNEL__ -DMODULE -I/usr/src/linux/include -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -m486
 USE_DEPEND=y
+else
+include $(TOPDIR)/Rules.make
 endif
 
 ifdef USE_DEPEND
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov