summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bcf5f44..ac1ca50 100644
--- a/Makefile
+++ b/Makefile
@@ -3,9 +3,12 @@ LDFLAGS:=-lopenct -lusb
all: openct-escape
-openct-escape: openct-escape.o rfid_layer2.o rfid_layer2_iso14443a.o rfid_layer2_iso14443b.o rfid_asic_rc632.o rfid_reader_cm5121.o rfid.o rfid_protocol.o rfid_proto_tcl.o rfid_iso14443_common.o rfid_reader.o
+openct-escape: openct-escape.o librfid.a
$(CC) $(LDFLAGS) -o $@ $^
+librfid.a: rfid_layer2.o rfid_layer2_iso14443a.o rfid_layer2_iso14443b.o rfid_layer2_iso15693.o rfid_asic_rc632.o rfid_reader_cm5121.o rfid.o rfid_protocol.o rfid_proto_tcl.o rfid_iso14443_common.o rfid_reader.o
+ ar r $@ $^
+
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $^
personal git repositories of Harald Welte. Your mileage may vary