diff options
Diffstat (limited to 'tests/unit/Makefile')
| -rw-r--r-- | tests/unit/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/unit/Makefile b/tests/unit/Makefile index e4ea388..f31172b 100644 --- a/tests/unit/Makefile +++ b/tests/unit/Makefile | |||
| @@ -17,11 +17,11 @@ CFLAGS := -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-sign-com | |||
| 17 | -I $(SECP256K1_CFG) \ | 17 | -I $(SECP256K1_CFG) \ |
| 18 | -I /usr/include/cjson | 18 | -I /usr/include/cjson |
| 19 | 19 | ||
| 20 | LDFLAGS := -lmbedcrypto -lcjson | 20 | LDFLAGS := -lmbedcrypto -lcjson -lm |
| 21 | 21 | ||
| 22 | SECP256K1_OBJ := secp256k1.o precomputed_ecmult.o precomputed_ecmult_gen.o | 22 | SECP256K1_OBJ := secp256k1.o precomputed_ecmult.o precomputed_ecmult_gen.o |
| 23 | 23 | ||
| 24 | TESTS := test_geohash test_identity test_nostr_event test_cashu test_session test_tollgate_client | 24 | TESTS := test_geohash test_identity test_nostr_event test_cashu test_session test_tollgate_client test_lnurl_pay test_lightning_payout |
| 25 | 25 | ||
| 26 | .PHONY: all test clean $(TESTS) | 26 | .PHONY: all test clean $(TESTS) |
| 27 | 27 | ||
| @@ -65,5 +65,11 @@ test_session: test_session.c $(REPO_ROOT)/main/session.c | |||
| 65 | test_tollgate_client: test_tollgate_client.c | 65 | test_tollgate_client: test_tollgate_client.c |
| 66 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) | 66 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) |
| 67 | 67 | ||
| 68 | test_lnurl_pay: test_lnurl_pay.c | ||
| 69 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) | ||
| 70 | |||
| 71 | test_lightning_payout: test_lightning_payout.c | ||
| 72 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) | ||
| 73 | |||
| 68 | clean: | 74 | clean: |
| 69 | rm -f $(TESTS) $(SECP256K1_OBJ) | 75 | rm -f $(TESTS) $(SECP256K1_OBJ) |