| 1 | This patch allows us to make the libgcrypt dependency optional (which it |
| 2 | is, if you look at the code), which in turns allows us to build CRDA |
| 3 | without the signature-checking capability on 'regulatory.bin'. |
| 4 | |
| 5 | |
| 6 | |
| 7 | LDLIBS += `pkg-config --libs openssl` |
| 8 | $(LIBREG): keys-ssl.c |
| 9 | |
| 10 | else |
| 11 | +ifeq ($(USE_GCRYPT),1) |
| 12 | CFLAGS += -DUSE_GCRYPT |
| 13 | LDLIBS += -lgcrypt |
| 14 | |
| 15 | $(LIBREG): keys-gcrypt.c |
| 16 | |
| 17 | endif |
| 18 | +endif |
| 19 | MKDIR ?= mkdir -p |
| 20 | INSTALL ?= install |