diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-04-26 14:57:08 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-04-26 15:26:25 +0200 |
commit | 3c8b9481088b546af3f0fd161a432ba0f0cb682e (patch) | |
tree | e6a83124f6becb94abc6dfbd03b8bd6400170f81 /common/Makefile | |
parent | d8a73fe012567565113419dc0c4678df5abe5bc5 (diff) |
Move libc functions into a pseudo libc away from libarc
Diffstat (limited to 'common/Makefile')
-rw-r--r-- | common/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/common/Makefile b/common/Makefile index f1f75ca..8a1b06a 100644 --- a/common/Makefile +++ b/common/Makefile @@ -1,11 +1,18 @@ SUBARCH ?= IP22 -CFLAGS += -Wall -O2 -I. -I../arclib -DSUBARCH=${SUBARCH} +CFLAGS += -Wall -O2 -I../arclib -mno-abicalls -G 0 -fno-pic -fno-builtin -I. -DSUBARCH=${SUBARCH} HOSTCC = $(CC) HOSTCFLAGS += -Wall -O2 -DSUBARCH=$(SUBARCH) -all: +TARGETS = libc.a +OBJECTS = stdlib.o stdio.o string.o + +all: $(TARGETS) + +libc.a: $(OBJECTS) + rm -f $@ + $(AR) -crs $@ $(OBJECTS) clean: - rm -f *~ tags + rm -f $(OBJECTS) *~ tags |