aboutsummaryrefslogtreecommitdiffstats
path: root/t/Makefile
blob: 6ef59587507e44e7e7104f8b5b1eb3318f2229ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
TESTOBJS=test.o test_common.o test_configuration.o test_curl.o test_packages.o test_transaction.o
CC=gcc
CURLFLAGS=`curl-config --libs`
DEFINES=
CFLAGS=-W -Werror -Wall -O2 -ansi -pedantic $(DEFINES)
LDFLAGS=$(CURLFLAGS) -lz
CHECKFLAGS=`pkg-config --libs check`

test: $(TESTOBJS)
	$(CC) -o test $(TESTOBJS) $(CFLAGS) ../src/libslapt.so $(CHECKFLAGS) $(LDFLAGS)

runtest: test
	./test

$(TESTOBJS):

clean:
	-rm *.o test
	-rm -r data/slapt-get