stdlib: fix the return value of exit()
[neatlibc.git] / Makefile
blob18e9d64de14bc6f3ef951c498aa2334f89915b3a
1 CC = ncc
2 FASM = fasm
3 CFLAGS = -Os -I.
5 all: start.o libc.a
7 %.o: %.s
8 $(FASM) $^ $@
9 %.o: %.c
10 $(CC) $(CFLAGS) $^
11 libc.a: syscall.o string.o malloc.o atoi.o ctype.o stdlib.o \
12 stdarg.o stdio.o termios.o errno.o stringc.o \
13 unistd.o
14 $(AR) rcs $@ $^
16 clean:
17 rm -f *.o *.a