# Change the following to specify the desired output language
# Currently only ENGLISH is supported.
LANGUAGE= ENGLISH

# You must use an ANSI C compiler (like gcc)
CC= gcc
CFLAGS= -D${LANGUAGE} -g

ged2html: main.o read.o database.o index.o output.o tags.o
	${CC} ${CFLAGS} -o ged2html main.o read.o database.o index.o \
		output.o tags.o

main.o: main.c node.h read.h database.h output.h tags.h
	${CC} ${CFLAGS} -c main.c

read.o: read.c node.h read.h tags.h
	${CC} ${CFLAGS} -c read.c

database.o: database.c node.h database.h index.h tags.h
	${CC} ${CFLAGS} -c database.c

index.o: index.c index.h
	${CC} ${CFLAGS} -c index.c

output.o: output.c tags.h node.h database.h output.h
	${CC} ${CFLAGS} -c output.c

tags.o: tags.c tags.h
	${CC} ${CFLAGS} -c tags.c

clean:
	rm  -f ged2html *.o *~ #*
