
git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@121 315a16e6-25f9-4109-90ae-ca3045a26c18
26 lines
469 B
Makefile
26 lines
469 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) $<
|
|
|
|
clean:
|
|
$(RM) *.o *~
|
|
|
|
depend:
|
|
$(CC) -MM $(CFLAGS) hello.c > Makefile.dep
|
|
|
|
-include Makefile.dep
|
|
# DO NOT DELETE
|