summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-02-05 04:35:27 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-02-05 04:35:27 +0100
commit61ba39a23786a7ae9694705af1d146c00a319144 (patch)
treef9ad51bee751f7e878ac3e7ad4d45f993605c37d /Makefile
parente2d292afdb43cd7d9391128563384e1edd53c52e (diff)
Getting rid of newlib, starting to implement a libc. Highly experimental, highly untested.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index fa411dd..800541a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
TARGET = demo.bin
-LIBDEPS = FreeRTOS/libFreeRTOS.a arch/libarch.a os/libos.a
-LIBS = -Wl,--start-group -lc $(LIBDEPS) -Wl,--end-group
+LIBDEPS = FreeRTOS/libFreeRTOS.a arch/libarch.a os/libos.a libc/libc.a
+LIBS = -Wl,--start-group $(LIBDEPS) -Wl,--end-group
TARGET_SRCS = test-romfs.o
@@ -14,16 +14,18 @@ clean: clean-generic
$(Q)$(MAKE) $(MAKE_OPTS) -C FreeRTOS clean
$(Q)$(MAKE) $(MAKE_OPTS) -C arch clean
$(Q)$(MAKE) $(MAKE_OPTS) -C os clean
+ $(Q)$(MAKE) $(MAKE_OPTS) -C libc clean
$(Q)$(MAKE) $(MAKE_OPTS) -C tools clean
$(Q)rm -f test-romfs.bin
-.PHONY: libs FreeRTOS arch os tools
+.PHONY: libs FreeRTOS arch os libc tools
FreeRTOS/libFreeRTOS.a: FreeRTOS
arch/libarch.a: arch
os/libos.a: os
+libc/libc.a: libc
-libs: FreeRTOS arch os
+libs: FreeRTOS arch os libc
FreeRTOS:
$(E) "[MAKE] Entering FreeRTOS"
@@ -37,6 +39,10 @@ os:
$(E) "[MAKE] Entering os"
$(Q)$(MAKE) $(MAKE_OPTS) -C os
+libc:
+ $(E) "[MAKE] Entering libc"
+ $(Q)$(MAKE) $(MAKE_OPTS) -C libc
+
tools:
$(E) "[MAKE] Entering tools"
$(Q)$(MAKE) $(MAKE_OPTS) -C tools
@@ -50,4 +56,5 @@ test-romfs.o: tools/mkromfs
include FreeRTOS/config.mk
include arch/config.mk
include os/config.mk
+include libc/config.mk
include target-rules.mk