
git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@411 315a16e6-25f9-4109-90ae-ca3045a26c18
28 lines
527 B
Makefile
28 lines
527 B
Makefile
ARCH = x86
|
|
NEWLIB = ../x86/i586-metalsvm-elf32
|
|
MAKE = make
|
|
CC = gcc
|
|
CFLAGS = -m32 -O2 -nostdinc -Wall -fno-builtin -I$(NEWLIB)/include -I../../include -I../../arch/$(ARCH)/include #-fno-stack-protector
|
|
LDFLAGS = -m32 -nostdlib -L$(NEWLIB)/lib
|
|
|
|
# other implicit rules
|
|
%.o : %.c
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
default:
|
|
$(MAKE) hello
|
|
|
|
all:
|
|
$(MAKE) hello
|
|
|
|
hello: hello.o
|
|
$(CC) -T link.ld -o $@ $(LDFLAGS) $<
|
|
|
|
clean:
|
|
$(RM) *.o *~
|
|
|
|
depend:
|
|
$(CC) -MM $(CFLAGS) hello.c > Makefile.dep
|
|
|
|
-include Makefile.dep
|
|
# DO NOT DELETE
|