#
# nfpt: no-frills parallel transfer
# A quick-and-dirty pseudo-ECP mode parallel cable transfer utility
# Copyright (c) 2002,2003 K.H. Man <mkh@pl.jaring.my>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# nfpt makefile
# Last revised: 2003-07-15
#
.PHONY: clean

ecp-test.exe: ecp.h ecp.c
	gcc -s -Os -DECP_TEST ecp.c -o ecp-test.exe

ecp.o: ecp.h ecp.c
	gcc -O2 -c ecp.c

nfpt.o: ecp.h nfpt.h nfpt.c
	gcc -Os -c nfpt.c

nfpt.exe: ecp.o nfpt.o
	gcc -s ecp.o nfpt.o -o nfpt.exe

clean:
	erase *.o

