metalsvm/newlib/examples/Makefile
2010-08-17 21:20:03 +00:00

27 lines
492 B
Makefile

MAKE = make
CC = gcc
CFLAGS = -O2 -nostdinc -Wall -fno-builtin -I../current/include -I../../include -I../../arch/x86/include -fno-stack-protector
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