Blob Blame History Raw
diff --git a/Makefile b/Makefile
index cc0b9cc..19ec4da 100644
--- a/Makefile
+++ b/Makefile
@@ -18,12 +18,10 @@ INTFLAGS += -DUSE_OPENSSL
 endif
 
 LIBS += -ltomcrypt
+LIBS += -ltfm
 
 TARGET = pixiewps
 
-include $(SRCDIR)/crypto/tfm/sources.mak
-TFMSRC = $(patsubst ./%,$(SRCDIR)/crypto/tfm/%,$(TFM_SRCS))
-TFMOBJS = $(TFMSRC:.c=.o)
 TC_SRCS = ./aes_cbc.c
 TCSRC = $(patsubst ./%,$(SRCDIR)/crypto/tc/%,$(TC_SRCS))
 TCOBJS = $(TCSRC:.c=.o)
@@ -39,9 +37,6 @@ all: $(TARGET)
 $(TARGET): $(SOURCE) $(HDRS) $(TFMOBJS) $(TCOBJS)
 	$(CC) $(INTFLAGS) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(SOURCE) $(LIBS) $(LDFLAGS) $(TFMOBJS) $(TCOBJS)
 
-$(SRCDIR)/crypto/tfm/%.o: $(SRCDIR)/crypto/tfm/%.c
-	$(CC) $(CFLAGS) $(CPPFLAGS) -I$(SRCDIR)/crypto/tfm -c -o $@ $<
-
 $(SRCDIR)/crypto/tc/%.o: $(SRCDIR)/crypto/tc/%.c
 	$(CC) $(CFLAGS) $(CPPFLAGS) -I$(SRCDIR)/crypto/tc -c -o $@ $<
 
diff --git a/src/crypto/crypto_internal-modexp.c b/src/crypto/crypto_internal-modexp.c
index 1adf2fc..10a47fe 100644
--- a/src/crypto/crypto_internal-modexp.c
+++ b/src/crypto/crypto_internal-modexp.c
@@ -1,7 +1,7 @@
 #include <stdlib.h>
 #include <stdint.h>
 
-#include "tfm/tfm.h"
+#include <tfm.h>
 
 #define u8 uint8_t