Fix build on Microsoft Windows.

Windows users: I hate you in secret.
This commit is contained in:
Romain Tartiere 2010-08-10 19:50:29 +00:00
parent d7c16d6d1a
commit fd0efd4a62
9 changed files with 52 additions and 30 deletions

View file

@ -70,9 +70,11 @@ NFCIP_TARGET_OBJ=obj\nfcip-target.obj \
obj\nfc-utils.obj
NFC_MFCLASSIC_OBJ=obj\nfc-mfclassic.obj \
obj\mifare.obj \
obj\nfc-utils.obj
NFC_MFULTRALIGHT_OBJ=obj\nfc-mfultralight.obj \
obj\mifare.obj \
obj\nfc-utils.obj
all: obj bin $(LIBNFC_DLL) $(NFC_LIST) $(NFC_POLL) $(NFC_RELAY) $(NFCIP_INITIATOR) $(NFCIP_TARGET) $(NFC_ANTICOL) $(NFC_EMULATE) $(NFC_MFCLASSIC) $(NFC_MFULTRALIGHT)
@ -157,6 +159,9 @@ $(NFC_MFULTRALIGHT): $(NFC_MFULTRALIGHT_OBJ) $(LIBNFC_DLL) bin\$(DLLNAME).lib ob
if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;#1
if exist $@.manifest del $@.manifest
obj\mifare.obj: ..\examples\mifare.c
$(CC) /c $(CC_OUT_OBJ)$@ $(CFLAGS) ..\examples\mifare.c
obj\nfc-relay.obj: ..\examples\nfc-relay.c
$(CC) /c $(CC_OUT_OBJ)$@ $(CFLAGS) ..\examples\nfc-relay.c
@ -259,4 +264,4 @@ install: all
cd ..

View file

@ -7,14 +7,14 @@ EXPORTS
nfc_disconnect
nfc_configure
nfc_initiator_init
nfc_initiator_select_tag
nfc_initiator_select_passive_target
nfc_initiator_list_passive_targets
nfc_initiator_select_dep_target
nfc_initiator_deselect_tag
nfc_initiator_deselect_target
nfc_initiator_poll_targets
nfc_initiator_transceive_bits
nfc_initiator_transceive_bytes
nfc_initiator_transceive_dep_bytes
nfc_initiator_mifare_cmd
nfc_target_init
nfc_target_receive_bits
nfc_target_receive_bytes
@ -26,3 +26,6 @@ EXPORTS
iso14443a_crc
append_iso14443a_crc
nfc_version
; FIXME: Lines bellow SUCKS!
pn53x_transceive
pncmd_initiator_exchange_data