blob: 70c92768a496d39af92480abb430f46682cc0af6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
SRCS = $(wildcard *.c)
OBJS = $(SRCS:.c=.o)
CFLAGS = -std=c99 -Os -fno-builtin -D_XOPEN_SOURCE=700
#LDFLAGS = -static
LIBS = -lrt -lpthread -lrt -lm
-include config.mak
all: testsuite
testsuite: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $<
clean:
rm -f $(OBJS) testsuite
relink:
rm -f testsuite
make all
test: testsuite
./testsuite
retest: relink test
|