summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-08-22 14:42:40 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-08-22 14:42:40 -0700
commit22a37e436ec3b84ba6dadb44952b0535f96a213c (patch)
treef295bff4f5d3861ea4778a155caf1b222114d353 /sample
parentbd09a6d828fa492aed4406adde6c412e0e5c640d (diff)
downloadsyslinux-22a37e436ec3b84ba6dadb44952b0535f96a213c.tar.gz
Clean up embedded Makefile targets; fix build failure
Unify common pieces to "embedded" targets (those that produce code that runs neither in the host nor in a com32 environment); this fixes the broken sample/ directory Makefile.
Diffstat (limited to 'sample')
-rw-r--r--sample/Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/sample/Makefile b/sample/Makefile
index d9df4582..8560b3e1 100644
--- a/sample/Makefile
+++ b/sample/Makefile
@@ -15,19 +15,15 @@
##
topdir = ..
-include $(topdir)/MCONFIG
+include $(topdir)/MCONFIG.embedded
+
+INCLUDES = -I$(com32)/include
-LD += -m elf_i386
-CFLAGS = $(GCCOPT) -W -Wall -I$(topdir)/com32/include
-SFLAGS = $(GCCOPT)
-LDFLAGS = -s
PPMTOLSS16 = $(topdir)/utils/ppmtolss16
LIB = liboldcom32.a
LIBOBJS = conio.o atou.o skipatou.o printf.o c32exit.o
-.SUFFIXES: .lss .c .o .elf .c32
-
all: syslogo.lss comecho.com hello.c32 hello2.c32 filetest.c32 c32echo.c32 \
fd.c32 $(LIB)