summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-05-16 16:47:25 +0000
committerErik Andersen <andersen@codepoet.org>2000-05-16 16:47:25 +0000
commit70216fffd789448979f4d63ac0b49b2fa588530f (patch)
treee2eff530eea6ad97f10c01faa1684830bdbf715d
parent9b7a1c1c4b4cbb1257b19caa92ccd9b765b1f01b (diff)
Add in a test dir.
-Erik
-rw-r--r--test/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
new file mode 100644
index 000000000..ff1e9f4f3
--- /dev/null
+++ b/test/Makefile
@@ -0,0 +1,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
+
+