aboutsummaryrefslogtreecommitdiffstats
path: root/sample/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-07-26 13:33:37 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-07-26 13:36:21 -0700
commit0e2cc408f60fbafecd853751c8638dfe9a9f7c84 (patch)
treeee423bc9d98472ed3813f43ec1bdb5bc53d58ef5 /sample/Makefile
parent4f0db90a7e875ed3f8ac2cdb583e24ab14e8bcb4 (diff)
downloadhdt-pierre-0e2cc408f60fbafecd853751c8638dfe9a9f7c84.tar.gz
hdt-pierre-0e2cc408f60fbafecd853751c8638dfe9a9f7c84.tar.xz
hdt-pierre-0e2cc408f60fbafecd853751c8638dfe9a9f7c84.zip
sample: remove obsolete "raw" comboot/com32 samples
We really don't want people to write code without using the library, so just remove these obsolete and no longer functional samples. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'sample/Makefile')
-rw-r--r--sample/Makefile35
1 files changed, 2 insertions, 33 deletions
diff --git a/sample/Makefile b/sample/Makefile
index 9fa21c2a..f1006ff9 100644
--- a/sample/Makefile
+++ b/sample/Makefile
@@ -15,40 +15,10 @@
##
topdir = ..
-include $(topdir)/MCONFIG.embedded
-
-INCLUDES = -I$(com32)/include
PPMTOLSS16 = $(topdir)/utils/ppmtolss16
-LIBGCC := $(shell $(CC) $(GCCOPT) --print-libgcc)
-LIB = liboldcom32.a
-
-LIBOBJS = conio.o atou.o skipatou.o printf.o c32exit.o
-
-com32 = $(topdir)/com32
-C_LIBS = $(com32)/libutil/libutil_com.a $(com32)/lib/libcom32.a $(LIBGCC)
-LDFLAGS = -m elf_i386 -T $(com32)/lib/com32.ld
-
-all: syslogo.lss comecho.com hello.c32 hello2.c32 filetest.c32 c32echo.c32 \
- fd.c32 $(LIB)
-
-.PRECIOUS: %.o
-
-.PRECIOUS: %.elf
-%.elf: c32entry.o %.o $(LIB)
- $(LD) -Ttext 0x101000 -e _start -o $@ $^
-
-%.c32: %.elf
- $(OBJCOPY) -O binary $< $@
-
-%.com: %.asm
- ( $(NASM) -M -DDEPEND -o $@ $< ; echo '' ) > .$@.d ; true
- $(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<
-$(LIB): $(LIBOBJS)
- rm -f $@
- $(AR) cq $@ $^
- $(RANLIB) $@
+all: syslogo.lss
%.lss: %.ppm.gz $(PPMTOLSS16)
$(GZIPPROG) -cd $< | \
@@ -61,9 +31,8 @@ $(LIB): $(LIBOBJS)
tidy dist:
rm -f *.o *.a *.lst *.elf .*.d
-# Don't specify *.com since mdiskchk.com can't be built using Linux tools
clean: tidy
- rm -f *.lss *.o *.c32 comecho.com
+ rm -f *.lss *.o *.c32 *.com
spotless: clean