summaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 71f6c0f..c506caa 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -2,7 +2,7 @@ CC=gcc
CFLAGS=-fPIC -Wall -Wextra -ggdb -gdwarf-2 -g3
CGREEN_RUNNER=cgreen-runner
-TESTS=resize rdp xwin utils parse_geometry mcs
+TESTS=resize rdp xwin utils parse_geometry mcs asn
RDP_MOCKS=ui_mock.o bitmap_mock.o secure_mock.o ssl_mock.o mppc_mock.o \
@@ -25,6 +25,8 @@ PARSE_MOCKS=ui_mock.o rdpdr_mock.o rdpedisp_mock.o ssl_mock.o ctrl_mock.o secure
MCS_MOCKS=utils_mock.o secure_mock.o iso_mock.o
+ASN_MOCKS=utils_mock.o
+
all: test
.PHONY: test
@@ -54,6 +56,12 @@ parse_geometry: parse_geometry_test.o $(PARSE_MOCKS) ../rdesktop.c
mcs: mcs_test.o $(MCS_MOCKS) stream.o
$(CC) $(CFLAGS) -shared -lcgreen -o $@ $^
+asn: asn_test.o $(ASN_MOCKS) asn.o stream.o
+ $(CC) $(CFLAGS) -shared -lcgreen -o $@ $^
+
+asn.o: ../asn.c
+ $(CC) $(CFLAGS) -c -o $@ $^
+
stream.o: ../stream.c
$(CC) $(CFLAGS) -c -o $@ $^