#******************************************************************************
# Module    :   Makefile for UnPost utility. (GCC on Sun 4)
#
# Author    :   John W. M. Stevens
#******************************************************************************

CC_FLAGS    =   -ansi -DGCC_COMPILER -funsigned-char -O2

.c.o:
	gcc -c $(CC_FLAGS) $<

all: retest unpost client

retest: recomp.o rematch.o retest.o sets.o utils.o
	gcc $(CC_FLAGS) -o retest retest.o recomp.o rematch.o sets.o utils.o

client: recomp.o rematch.o sets.o utils.o client.o
	gcc $(CC_FLAGS) -o client client.o recomp.o rematch.o sets.o utils.o

unpost: config.o   decode.o   ident.o    lex.o      list.o \
	modflnm.o  parse.o    recomp.o   rematch.o  segment.o \
	sets.o     unpost.o   utils.o    uudec.o
	gcc -o unpost config.o   decode.o   ident.o    lex.o      list.o \
	modflnm.o  parse.o    recomp.o   rematch.o  segment.o \
	sets.o     unpost.o   utils.o    uudec.o

config.o: config.c

decode.o: decode.c

ident.o: ident.c

lex.o: lex.c

list.o: list.c

modflnm.o: modflnm.c

parse.o: parse.c

recomp.o: recomp.c

rematch.o: rematch.c

segment.o: segment.c

sets.o: sets.c

unpost.o: unpost.c

utils.o: utils.c

uudec.o: uudec.c
