aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 35e4bfaf006d009bb8c540d8b81248ea5236e2ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
test: test_asm c_test/encode_decode c_test/creole
CFLAGS=-DCREOLE_TEST
asm/libcreole.so: creole.c creole.h
	$(CC) $(CFLAGS) -Wall -fPIC -c creole.c -o c_test/creole.o
	$(CC) -shared -o asm/libcreole.so c_test/creole.o

test_asm: asm/libcreole.so
	cd asm && python3 test.py -f
c_test/encode_decode: c_test/encode_decode.c creole.c creole.h
	$(CC) $(CFLAGS) creole.c c_test/encode_decode.c -Wall -pedantic -std=c99 -g -fopenmp -o c_test/encode_decode
	# c_test/encode_decode
c_test/creole: c_test/creole.c creole.c creole.h c_test/greatest.h
	$(CC) $(CFLAGS) -g c_test/creole.c -Wall -pedantic -std=c99 -o c_test/creole
	c_test/creole