aboutsummaryrefslogtreecommitdiffstats
path: root/t/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 't/Makefile')
-rw-r--r--t/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/Makefile b/t/Makefile
new file mode 100644
index 0000000..6ef5958
--- /dev/null
+++ b/t/Makefile
@@ -0,0 +1,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