forked from mbrossard/has
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
27 lines (18 loc) · 783 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CFLAGS = -O0 -g -I. -Wall -pedantic $(EXTRA)
TESTS = tests/test_has tests/test_json tests/test_utf8 \
tests/test_x509 tests/test_pkcs10
all: $(TESTS)
tests/test_has: tests/test_has.c has.c has.h
$(CC) $(CFLAGS) -o $@ $<
tests/test_json: tests/test_json.c has.c has.h has_json.c has_json.h
$(CC) $(CFLAGS) -o $@ $<
tests/test_utf8: tests/test_utf8.c has.c has.h has_json.c has_json.h
$(CC) $(CFLAGS) -o $@ $<
tests/test_x509: tests/test_x509.c has.c has.h has_json.c has_json.h has_x509.c
$(CC) $(CFLAGS) -o $@ $< -lcrypto
tests/test_pkcs10: tests/test_pkcs10.c has.c has.h has_json.c has_json.h has_x509.c
$(CC) $(CFLAGS) -o $@ $< -lcrypto
clean:
rm -f $(TESTS)
find . \( -name \*.o -or -name \*~ \) -delete
find . \( -name \*.dSYM -prune \) -exec rm -rf '{}' ';'