# Makefile for ifilter.c
# written by Diego Zamboni, Mar 8, 1997
#        and Jason Rennie

CC=gcc
# CFLAGS=-g -DDEBUG -Wall -O2 -pedantic
CFLAGS=-Wall -O2
LOADLIBES=-lm    # puts library options at end of line
#LOADLIBES= -lm -pg    # puts library options at end of line
#LOADLIBES=-L/tmp/ElectricFence-2.0.5 -lefence -lm -pg    # puts library options at end of line
# LDFLAGS=-lm    # puts library options at beginning of line - evil!

all: ifilter irefile

ifilter: ifilter.o assoc_array_int.o ifile.o error.o

irefile: irefile.o assoc_array_int.o ifile.o error.o

clean:
	rm -f *.o *~ core a.out ifilter irefile

tar:
	tar cvf ifile_c.tar README CHANGES INSTALL UPGRADE COPYING Makefile assoc_array_int.c assoc_array_int.h convert.perl extendable_array.h ifile.jpg Ifile.jpg ifilter.c install.perl irefile.c ifile.c ifile.h error.c error.h; gzip ifile_c.tar

ifilter.o: ifilter.c assoc_array_int.h extendable_array.h Makefile
irefile.o: irefile.c assoc_array_int.h extendable_array.h Makefile

ifile.o: ifile.c error.h ifile.h Makefile
error.o: error.c error.h ifile.h Makefile

ifile.h: extendable_array.h Makefile

assoc_array_int.o: assoc_array_int.c assoc_array_int.h Makefile
