diff options
author | Robert de Bath <rdebath@poboxes.com> | 1997-10-05 15:05:09 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:40:02 +0200 |
commit | 48798bf2eb93ec3b99720ac2e16093441156653d (patch) | |
tree | 35e03d95df5f2677f05e32d70abb6d0583aa47ba /elksemu/Makefile | |
parent | 9d97bc3cb3aecd3416fb7c4be3ca2f436665b696 (diff) | |
download | dev86-48798bf2eb93ec3b99720ac2e16093441156653d.tar.gz |
Import Dev86src-0.13.0.tar.gzv0.13.0
Diffstat (limited to 'elksemu/Makefile')
-rw-r--r-- | elksemu/Makefile | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/elksemu/Makefile b/elksemu/Makefile index df7b08a..4b3e056 100644 --- a/elksemu/Makefile +++ b/elksemu/Makefile @@ -2,14 +2,24 @@ # Makefile for elksemu. # -ifeq ($(CC),bcc) # Use BCC to make a tiny static a.out version. -CFLAGS=-O -3 -N -ansi -s -else -# For gcc with the default compiler +ifeq ($(CC),bcc) +CFLAGS=-Ml -ansi -s $(DEFS) +endif +ifeq ($(CC),ncc) +CFLAGS=-Ml -ansi -s $(DEFS) +endif + +# For gcc +ifeq ($(CC),gcc) CFLAGS=-O2 -fno-strength-reduce -Wall -idirafter . $(DEFS) endif +# Default +ifeq ($(CFLAGS),) +CFLAGS=-O +endif + # Turn on elkemu's strace like facility. # DEFS=-DDEBUG @@ -41,6 +51,7 @@ clean realclean: module: binfmt_elks.o # HOW to compile the module... +# BUT remember you don't need it for a recent 2.1.X; use binfmt_misc. # This matches my compile (2.0.x); yours may be different. MODCFLAGS=-D__KERNEL__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \ |