Skip to content

Commit

Permalink
Rename nfc-mftool to nfc-mfclassic.
Browse files Browse the repository at this point in the history
Rename nfc-mfultool to nfc-mfultralight.
Remove compilation warnings due to missing includes.
"make distclean" now clean Makefile.in.
  • Loading branch information
neomilium committed Nov 2, 2009
1 parent cd43b75 commit c6a7e2b
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 19 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ html-am : Doxyfile

.PHONY: html
endif
DISTCLEANFILES = Makefile.in
1 change: 1 addition & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ if LIBUSB_ENABLED
libnfc_la_LIBADD += @LIBUSB_LIBS@
endif

DISTCLEANFILES = Makefile.in
2 changes: 1 addition & 1 deletion src/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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}/../)

Expand Down
13 changes: 7 additions & 6 deletions src/examples/Makefile.am
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions src/examples/nfc-anticol.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "libnfc.h"

#include "messages.h"
#include "bitutils.h"

#define SAK_FLAG_ATS_SUPPORTED 0x20

Expand Down
2 changes: 2 additions & 0 deletions src/examples/nfc-emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/examples/nfc-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
12 changes: 6 additions & 6 deletions src/examples/nfc-mftool.1 → src/examples/nfc-mfclassic.1
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions src/examples/nfc-mfultool.1 → src/examples/nfc-mfultralight.1
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
#include <ctype.h>

#include "libnfc.h"

#include "mifareultag.h"
#include "bitutils.h"

static dev_info* pdi;
static tag_info ti;
Expand Down
2 changes: 2 additions & 0 deletions src/examples/nfc-relay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit c6a7e2b

Please sign in to comment.