summaryrefslogtreecommitdiff
path: root/src/cmd/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/test/Makefile')
-rw-r--r--src/cmd/test/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cmd/test/Makefile b/src/cmd/test/Makefile
new file mode 100644
index 0000000..d1488b5
--- /dev/null
+++ b/src/cmd/test/Makefile
@@ -0,0 +1,15 @@
+include ../../data/build/user.mk
+
+CFILES = $(shell find . -name "*.c")
+CFILES = $(shell find . -name "*.c")
+OBJECTS = $(CFILES:%.c=%.o)
+
+$(SYSROOT)/usr/bin/test: $(OBJECTS)
+ $(LD) $(OBJECTS) -o $@ $(INTERNAL_CFLAGS)
+
+%.o: %.c
+ $(CC) $(INTERNAL_CFLAGS) -c $(CFLAGS) $< -o $@
+
+.PHONY: clean
+clean:
+ rm -f *.o *.d