string.s: fix memcmp() for non-equal case
[neatlibc.git] / Makefile
blobca4532b509f4b4ad75e640544f3cbc9bf6df2d96
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
13 $(AR) rcs $@ $^
15 clean:
16 rm -f *.o *.a