Skip to content

Commit a2875b9

Browse files
committed
add tests
1 parent abf902c commit a2875b9

File tree

3 files changed

+552
-0
lines changed

3 files changed

+552
-0
lines changed

tests/Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
CC = gcc
2+
CFLAGS = -Wall -ansi -pedantic
3+
LIB_DIR = ../lib
4+
INCFLAGS = -I$(LIB_DIR)
5+
LIBFLAGS = -L$(LIB_DIR) -lmod -lrt -lm
6+
LIB = $(LIB_DIR)/libmod.a
7+
EXEC = tests.out
8+
9+
$(EXEC): tests.c $(LIB)
10+
$(CC) $< $(CFLAGS) $(INCFLAGS) $(LIBFLAGS) -o $@
11+
12+
$(LIB):
13+
cd $(LIB_DIR) && make
14+
15+
clean:
16+
rm -f $(EXEC)
17+
18+
.PHONY: clean

0 commit comments

Comments
 (0)