blob: 8d71f6ecf5228abbfedbe69d539352ac5005b6f1 (
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
25
26
27
28
29
30
|
CC=gcc
CFLAGS=-I.. -Wall -Wextra -g -O2
LDFLAGS=-lm
.PHONY: all clean test
COMP=$(CC) $(CFLAGS) $(LDFLAGS) ../tanja.c
DEP=../tanja.c ../tanja.h ../khash.h
THREAD=-DTANJA_THREADSAFE -lpthread
PROGS=json tuple pthread link
all: $(PROGS)
json: $(DEP) json.c
$(COMP) json.c -o json
tuple: $(DEP) tuple.c
$(COMP) tuple.c -o tuple
pthread: $(DEP) ../tanja_pthread.h pthread.c
$(COMP) $(THREAD) pthread.c -o pthread
link: $(DEP) ../tanja_pthread.h link.c
$(COMP) $(THREAD) link.c -o link
test: json tuple pthread
prove ./json ./tuple ./pthread
clean:
rm -f $(PROGS)
|