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

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

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

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

clean:
	rm -rf *.so *.o