#      makefile
#
##############################################################################
#
#      REVISION HISTORY
#
#      Version    Date    Who              Comments
#      -------  -------- -------  ----------------------------
#      1.0      01/12/02 RJP/PPI  Original Release
#
#############################################################################
#
#      CONTAINS:
#
#      makefile for TM4
#	run as `make' to create production version, or
#	run as `make debug=1' to create debuggable version.
#
##############################################################################
#
#	Version and Date
#
DATE=`date`
VER=1.3
#
#	CFLAGS
#
ifdef debug
CFLAGS = -O -Wall -DDT="\"$(DATE)\"" -DVR="\"$(VER)"\" -DDEBUG -g
else
CFLAGS = -O -Wall -DDT="\"$(DATE)\"" -DVR="\"$(VER)"\"
endif
#
tm4: tm4.o
	cc $(CFLAGS) -o tm4 tm4.o
#
tm4.o: tm4-13.c
	$(CC) $(CFLAGS) -c tm4-13.c -o tm4.o
#
#	Directory cleanup
#
clean:
	-/bin/rm tm4.o x
#
#	installation
#
install:
	cp tm4 /usr/local/bin
#
##############################################################################
#
#	END OF makefile
#
