#
#  Warning: the code in the file "tex2asc.c" is ANSI-conformant.  This
#  means that if you do not have an ANSI-conformant C compiler, it will
#  not compile.  Compilers that are "almost" ANSI may or may not make it
#  (E.g., ULTRIX's cc can handle the prototyping fine, but not aggregate
#  initialization).
#
CC=gcc
CFLAGS= -O

tex2asc: tex2asc.o g_getopt.o flags.o rd.o
	${CC} ${CFLAGS} tex2asc.o g_getopt.o flags.o rd.o -o tex2asc

tex2asc.o: tex2asc.c Makefile
	${CC} ${CFLAGS} -c tex2asc.c

g_getopt.o: g_getopt.c
	${CC} ${CFLAGS} -c g_getopt.c

flags.o: flags.c
	${CC} ${CFLAGS} -c flags.c

rd.o: rd.c
	${CC} ${CFLAGS} -c rd.c

clean:
	rm -f tex2asc core *.o *~
