From 0936b9aeab611665645a4e6bafaded7ca76dd189 Mon Sep 17 00:00:00 2001 From: Robert de Bath Date: Tue, 3 Sep 1996 22:06:58 +0200 Subject: Import Dev86-0.0.7.tar.gz --- elksemu/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'elksemu/Makefile') diff --git a/elksemu/Makefile b/elksemu/Makefile index 92aa516..2044160 100644 --- a/elksemu/Makefile +++ b/elksemu/Makefile @@ -2,7 +2,7 @@ # Makefile for elksemu. # -CFLAGS=-O2 -fno-strength-reduce -Wall +CFLAGS=-O2 -fno-strength-reduce -Wall -idirafter . $(DEFS) # If you need an a.out exe. NB The program _does_ now work as ELF # CFLAGS=-O2 -fno-strength-reduce -b i486-linuxaout -N -s -static @@ -32,12 +32,16 @@ module: binfmt_elks.o # HOW to compile the module... -# This matches my compile; yours may be different. +# This matches my compile (2.0.0); yours may be different. +MODCFLAGS=-D__KERNEL__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \ + -fno-strength-reduce -pipe -m486 -DCPU=486 -DMODULE -DMODVERSIONS \ + -include /usr/include/linux/modversions.h + binfmt_elks.o: binfmt_elks.c - gcc -O -c -fomit-frame-pointer -DCPU=386 -D__KERNEL__ -DMODULE -DMODVERSIONS -include /usr/include/linux/modversions.h binfmt_elks.c + gcc -c $(MODCFLAGS) binfmt_elks.c # This is another option -# gcc -O -c -fomit-frame-pointer -DCPU=386 -D__KERNEL__ -DMODULE binfmt_elks.c +#MODCFLAGS=-O -fomit-frame-pointer -DCPU=386 -D__KERNEL__ -DMODULE # Or this ... -# gcc -O -c -fomit-frame-pointer -D__KERNEL__ -DMODULE -DCONFIG_MODVERSIONS binfmt_elks.c +#MODCFLAGS=-O -fomit-frame-pointer -D__KERNEL__ -DMODULE -DCONFIG_MODVERSIONS -- cgit v1.2.1