aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-01 00:29:55 +0000
committerhpa <hpa>2004-12-01 00:29:55 +0000
commitc3ad9c5e8cf4716f5f8a1933bb6e638745cc95a0 (patch)
tree483df0cb52f3cb3b4cde205f84636782e814632e
parentdf7a8e774d0236575a33cf348d204b29f95925b5 (diff)
downloadsyslinux.git-c3ad9c5e8cf4716f5f8a1933bb6e638745cc95a0.tar.gz
syslinux.git-c3ad9c5e8cf4716f5f8a1933bb6e638745cc95a0.tar.xz
syslinux.git-c3ad9c5e8cf4716f5f8a1933bb6e638745cc95a0.zip
Allow compiling for both Linux and COM32: Makefile cleanups
-rw-r--r--com32/lib/MCONFIG2
-rw-r--r--com32/modules/Makefile4
2 files changed, 3 insertions, 3 deletions
diff --git a/com32/lib/MCONFIG b/com32/lib/MCONFIG
index c79e1f84..f1874dca 100644
--- a/com32/lib/MCONFIG
+++ b/com32/lib/MCONFIG
@@ -8,7 +8,7 @@ PERL = perl
STRIP = strip --strip-all -R .comment -R .note
OBJCOPY = objcopy
-REQFLAGS = -g -m32 -I. -I./sys -I../include
+REQFLAGS = -g -m32 -D__COM32__ -I. -I./sys -I../include
OPTFLAGS = -Os -march=i386 -falign-functions=0 -falign-jumps=0 -falign-labels=0
WARNFLAGS = -W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline
diff --git a/com32/modules/Makefile b/com32/modules/Makefile
index 737e6f55..ed4e386d 100644
--- a/com32/modules/Makefile
+++ b/com32/modules/Makefile
@@ -34,7 +34,7 @@ PPMTOLSS16 = ../ppmtolss16
LIB = ../lib/libcom32.a
LIBGCC := $(shell $(CC) --print-libgcc)
-.SUFFIXES: .lss .c .o .elf .c32
+.SUFFIXES: .lss .c .o .elf .c32 .lnx
all: hello.c32 fancyhello.c32 fancyhello.lnx
@@ -61,7 +61,7 @@ tidy:
rm -f *.o *.a *.lst *.elf
clean: tidy
- rm -f *.lss *.o *.c32 *.com
+ rm -f *.lss *.o *.c32 *.lnx *.com
spotless: clean
rm -f *~ \#*