#
# Makefile for REV
# for making REV under OS/2	(emx0.8f)
#
# 02-10-93,	RZ TU Clausthal, T.J. Domsalla
#

CC		= gcc
CFLAGS	= -c
# Error	in reading/writing large text files	occures	when using -Zomf (OS/2)
#LDFLAGS = -O2 -s -Zomf	-o
LDFLAGS	= -O2 -s -o
O		= o
TCFLAGS	= -g -o	HUBBEL.EXE

all: rev.exe

rev.exe: rev.$O	getopt.$O
		 $(CC) $(LDFLAGS) $@ $^

test:
	$(CC) $(TCFLAGS) rev.c getopt.o

rev.obj: rev.o
		 emxomf	-mmain -o $@ $<

getopt.obj:	getopt.o
		 emxomf	-o $@ $<


rev.o: rev.c getopt.h
		 $(CC) $(CFLAGS) $<


getopt.o: getopt.c getopt.h
		 $(CC) $(CFLAGS) $<

