wok-stable view runcom/stuff/Makefile @ rev 11674

add runcom
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 18 09:00:05 2012 +0100 (2012-02-18)
parents
children
line source
1 CC=gcc -m32
2 CFLAGS= -O2 -Wall -fno-builtin -fno-stack-protector #-march=i386
3 HOST_CFLAGS=-O2 -Wall
4 # modify to set the kernel path
5 KERNEL_PATH=../linux-2.6.20
7 all: debug.bin debug8086.bin dbg8086.bin new.bin dbg.bin runcom
9 %.bin: %.o
10 objcopy -O binary $< $@
11 chmod +x $@
13 %.o: %.c
14 $(CC) $(CFLAGS) -c -o $@ $<
16 %.o: %.S
17 $(CC) -D__ASSEMBLY__ -Wa,-acghlnm=$*.lst -c -o $@ $<
19 clean:
20 rm -f *.bin runcom *.o *~