Rename nfc-mftool to nfc-mfclassic.

Rename nfc-mfultool to nfc-mfultralight.
Remove compilation warnings due to missing includes.
"make distclean" now clean Makefile.in.
This commit is contained in:
Romuald Conty 2009-11-02 11:34:58 +00:00
parent cd43b758d4
commit c6a7e2bf47
12 changed files with 31 additions and 19 deletions

View file

@ -15,3 +15,4 @@ html-am : Doxyfile
.PHONY: html
endif
DISTCLEANFILES = Makefile.in

View file

@ -27,3 +27,4 @@ if LIBUSB_ENABLED
libnfc_la_LIBADD += @LIBUSB_LIBS@
endif
DISTCLEANFILES = Makefile.in

View file

@ -1,4 +1,4 @@
SET(EXAMPLES-SOURCES nfc-list nfc-mftool nfc-mfultool nfcip-initiator nfcip-target nfc-anticol nfc-emulate nfc-relay)
SET(EXAMPLES-SOURCES nfc-list nfc-mfclassic nfc-mfultralight nfcip-initiator nfcip-target nfc-anticol nfc-emulate nfc-relay)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../)

View file

@ -1,4 +1,4 @@
bin_PROGRAMS = nfc-anticol nfc-list nfc-mftool nfc-mfultool nfc-relay nfc-emulate nfcip-target nfcip-initiator
bin_PROGRAMS = nfc-anticol nfc-list nfc-mfclassic nfc-mfultralight nfc-relay nfc-emulate nfcip-target nfcip-initiator
# set the include path found by configure
INCLUDES= $(all_includes)
@ -14,11 +14,11 @@ nfc_anticol_LDADD = $(top_builddir)/src/libnfc.la
nfc_list_SOURCES = nfc-list.c
nfc_list_LDADD = $(top_builddir)/src/libnfc.la
nfc_mfultool_SOURCES = nfc-mfultool.c mifareultag.h
nfc_mfultool_LDADD = $(top_builddir)/src/libnfc.la
nfc_mfultralight_SOURCES = nfc-mfultralight.c mifareultag.h
nfc_mfultralight_LDADD = $(top_builddir)/src/libnfc.la
nfc_mftool_SOURCES = nfc-mftool.c mifaretag.h
nfc_mftool_LDADD = $(top_builddir)/src/libnfc.la
nfc_mfclassic_SOURCES = nfc-mfclassic.c mifaretag.h
nfc_mfclassic_LDADD = $(top_builddir)/src/libnfc.la
nfc_relay_SOURCES = nfc-relay.c
nfc_relay_LDADD = $(top_builddir)/src/libnfc.la
@ -32,7 +32,8 @@ nfcip_target_LDADD = $(top_builddir)/src/libnfc.la
nfcip_initiator_SOURCES = nfcip-initiator.c
nfcip_initiator_LDADD = $(top_builddir)/src/libnfc.la
dist_man_MANS = nfc-anticol.1 nfc-emulate.1 nfc-list.1 nfc-mftool.1 nfc-mfultool.1 nfc-relay.1
dist_man_MANS = nfc-anticol.1 nfc-emulate.1 nfc-list.1 nfc-mfclassic.1 nfc-mfultralight.1 nfc-relay.1
#dist_man_MANS = $(man_MANS)
#EXTRA_DIST = $(man_MANS)
DISTCLEANFILES = Makefile.in

View file

@ -31,6 +31,7 @@
#include "libnfc.h"
#include "messages.h"
#include "bitutils.h"
#define SAK_FLAG_ATS_SUPPORTED 0x20

View file

@ -28,7 +28,9 @@
#include <string.h>
#include "libnfc.h"
#include "messages.h"
#include "bitutils.h"
static byte_t abtRecv[MAX_FRAME_LEN];
static size_t szRecvBits;

View file

@ -28,7 +28,9 @@
#include <string.h>
#include "libnfc.h"
#include "messages.h"
#include "bitutils.h"
static dev_info* pdi;
static byte_t abtFelica[5] = { 0x00, 0xff, 0xff, 0x00, 0x00 };

View file

@ -1,22 +1,22 @@
.TH NFC-MFTOOL 1 "Oct 06, 2009"
.TH NFC-MFCLASSIC 1 "Nov 02, 2009"
.SH NAME
nfc-mftool \- Mifare Classic command line tool based on libnfc
nfc-mfclassic \- MIFARE Classic command line tool based on libnfc
.SH SYNOPSIS
.B nfc-mftool
.B nfc-mfclassic
.RI \fR\fBr\fR|\fBw\fR
.RI \fR\fBa\fR|\fBb\fR
.IR DUMP
.IR [KEYS]
.SH DESCRIPTION
.B nfc-mftool
is a Mifare Classic tool that allow to read or write
.B nfc-mfclassic
is a MIFARE Classic tool that allow to read or write
.IR DUMP
file using Mifare keys provide in
.IR KEYS
file.
The Mifare Classic tag is one of the most widely used RFID tags.
MIFARE Classic tag is one of the most widely used RFID tags.
The firmware in the NFC controller supports authenticating, reading and writing to/from Mifare Classic tags.
This tool demonstrate the speed of this library and its easy-of-use.
It possible to read and write the complete content of a Mifare Classic 4KB tag within 1 second.

View file

@ -1,18 +1,18 @@
.TH NFC-MFTOOL 1 "Oct 06, 2009"
.TH NFC-MFULTRALIGHT 1 "Nov 02, 2009"
.SH NAME
nfc-mfultool \- Mifare Ultralight command line tool based on libnfc
nfc-mfultralight \- MIFARE Ultralight command line tool based on libnfc
.SH SYNOPSIS
.B nfc-mfultool
.B nfc-mfultralight
.RI \fR\fBr\fR|\fBw\fR
.IR DUMP
.SH DESCRIPTION
.B nfc-mfultool
is a Mifare Ultralight tool that allow to read or write
.B nfc-mfultralight
is a MIFARE Ultralight tool that allow to read or write
.IR DUMP
file.
The Mifare Ultralight tag is one of the most widely used RFID tags for ticketing application.
MIFARE Ultralight tag is one of the most widely used RFID tags for ticketing application.
It uses a binary Mifare Dump file (MFD) to store data for all sectors.
.SH OPTIONS

View file

@ -31,7 +31,9 @@
#include <ctype.h>
#include "libnfc.h"
#include "mifareultag.h"
#include "bitutils.h"
static dev_info* pdi;
static tag_info ti;

View file

@ -27,7 +27,9 @@
#include <string.h>
#include "libnfc.h"
#include "messages.h"
#include "bitutils.h"
static byte_t abtReaderRx[MAX_FRAME_LEN];
static byte_t abtReaderRxPar[MAX_FRAME_LEN];