summaryrefslogtreecommitdiff
path: root/test/Makefile
blob: ff1e9f4f34bfa85659c57b1883a297fd3cf495d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
TOPDIR=../
include $(TOPDIR)Rules.make


CFLAGS = -Wall -Os -fomit-frame-pointer -fno-builtin -nostdinc -I$(TOPDIR)include -I/usr/include/linux
LDFLAGS = -nostdlib -s
EXTRA_LIBS=/home/andersen/CVS/uC-libc/libc.a

# Allow alternative stripping tools to be used...
ifndef $(STRIPTOOL)
	STRIPTOOL = strip
endif
STRIP    = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $@

hello: hello.c Makefile
	$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(EXTRA_LIBS)
	$(STRIP)

clean:
	rm -f *.[oa] *~ core hello