summaryrefslogtreecommitdiff
path: root/Makefile
blob: ad673b4f83e345af7f1f23af8ad858b883763d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.POSIX:

include config.mk

CFLAGS=-I$(INCLUDEDIR) -nostdinc -fno-builtin
LDFLAGS=-L$(LIBDIR) $(LIBS)

TESTOBJS=main.o test.o assert.o ctype.o locale.o

testlibc: $(TESTOBJS)
	$(CC) -o $@ $(TESTOBJS) $(LDFLAGS)

assert.o: assert.c test.h

ctype.o: ctype.c test.h

locale.o: locale.c test.h

test.o: test.c test.h

main.o: main.c test.h

clean:
	rm -f *.o testlibc