metalsvm/newlib/examples/Makefile
stefan a6a9617775 - add the libc "newlib" and their support into MetalSVM
- programs could be load as module by the bootloader Grub



git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@95 315a16e6-25f9-4109-90ae-ca3045a26c18
2010-08-17 09:59:29 +00:00

27 lines
486 B
Makefile

MAKE = make
CC = gcc
CFLAGS = -O2 -nostdinc -fno-stack-protector -fno-builtin -I../current/include -I../../include -I../../arch/x86/include
LDFLGAS = -nostdlib -L../current/lib/
# other implicit rules
%.o : %.c
$(CC) -c $(CFLAGS) -o $@ $<
default:
$(MAKE) hello
all:
$(MAKE) hello
hello: hello.o
$(CC) -T link.ld -o $@ $(LDFLGAS) $<
gzip -c $@ > hello.gz
clean:
$(RM) *.o *~
depend:
$(CC) -MM $(CFLAGS) hello.c > Makefile.dep
-include Makefile.dep
# DO NOT DELETE