summaryrefslogtreecommitdiff
path: root/Makefile
blob: 31ada08248671cd0d6940b5691d701ea0e07dc6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CC=gcc
CFLAGS=-fPIC -g3

make: 
	$(CC) $(CFLAGS) -c buf.c
	$(CC) $(CFLAGS) -c buf_misc.c
	$(CC) $(CFLAGS) -fPIC -lc -ldl buf_misc.o buf.o -shared -o libbuf.so

t: buf.c buf_misc.c
	$(CC) $(CFLAGS) buf.o buf_misc.o test.c -o test 
	$(CC) $(CFLAGS) buf.o buf_misc.o test_circ.c -o test_circ

leak:
	valgrind --leak-check=full --track-origins=yes --log-file=log.txt ./test_circ

clean:
	rm -rf *.so *.o