Usermode - POSIX and C conformance changes
[tpg/acess2.git] / Usermode / Libraries / libc.so_src / Makefile
index b890d48..60b86cd 100644 (file)
@@ -6,16 +6,26 @@
 CPPFLAGS += \r
 CFLAGS   += -Werror -Wextra\r
 ASFLAGS  +=\r
-LDFLAGS  += -soname libc.so -Map map.txt\r
+LDFLAGS  += -Map map.txt\r
 \r
 INCFILES := stdio.h stdlib.h\r
 \r
-OBJ  = stub.o heap.o stdlib.o env.o stdio.o string.o select.o rand.o\r
-OBJ += perror.o scanf.o signals.o strtoi.o\r
+OBJ  = stub.o heap.o stdlib.o env.o stdio.o string.o rand.o\r
+OBJ += perror.o scanf.o signals.o strtoi.o strtof.o\r
+OBJ += printf.o time.o\r
 OBJ += arch/$(ARCHDIR).ao\r
 # signals.o\r
 DEPFILES := $(OBJ:%.o=%.d)\r
 BIN = libc.so\r
+ifeq ($(ARCHDIR),native)\r
+ BIN = libc_acess.so\r
+endif\r
 \r
 include ../Makefile.tpl\r
 \r
+EXP_%.txt: TEST_%.native\r
+       ./TEST_printf.native > EXP_printf.txt\r
+       rm TEST_printf.native\r
+\r
+%.native: %.c\r
+       $(NCC) $< -o $@ -Wall -std=gnu99\r

UCC git Repository :: git.ucc.asn.au