summaryrefslogtreecommitdiff
path: root/libc/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 /libc/Makefile
parente2d292afdb43cd7d9391128563384e1edd53c52e (diff)
Getting rid of newlib, starting to implement a libc. Highly experimental, highly untested.
Diffstat (limited to 'libc/Makefile')
-rw-r--r--libc/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/libc/Makefile b/libc/Makefile
new file mode 100644
index 0000000..64cfa5d
--- /dev/null
+++ b/libc/Makefile
@@ -0,0 +1,34 @@
+TARGET_LIB = libc.a
+
+all: $(TARGET_LIB)
+
+include $(ROOTDIR)/common.mk
+include config.mk
+include $(ROOTDIR)/FreeRTOS/config.mk
+include $(ROOTDIR)/arch/config.mk
+include $(ROOTDIR)/os/config.mk
+
+ifneq ($(USE_FLOATINGPOINT),true)
+TARGET_CPPFLAGS = -DNOFLOATINGPOINT
+endif
+
+TARGET_SRCS = \
+src/close.c \
+src/lseek.c \
+src/open.c \
+src/read.c \
+src/write.c \
+\
+src/stdio.c \
+\
+src/reent.c \
+\
+src/exit.c \
+\
+src/malloc.c \
+\
+src/xprintf.c \
+
+include $(ROOTDIR)/target-rules.mk
+
+clean: clean-generic