
# Makefile for "entity"
#
# If you want the program to convert control characters into
# entities when you use the -N (--num-all) option, compile
# with C_CONVCTRL defined, i.e. uncomment the following line.
# The default action is to leave control characters untouched,
# even though they are banned in HTML documents. You will get
# a warning if any is found.

# CNVCTRL = -DC_CONVCTRL

OBJS = entity.o getopt.o
CC = gcc
LD = gcc
CCFLAGS = -Wall -O2 -c
LDFLAGS = -Wall
EXEC = entity

$(EXEC): $(OBJS)
	$(LD) -o $(EXEC) $(LDFLAGS) $(OBJS)

entity.o: entity.c entity.h getopt.h Makefile
	$(CC) $(CNVCTRL) $(CCFLAGS) entity.c

getopt.o: getopt.h Makefile
	$(CC) $(CCFLAGS) getopt.c

clean:
	rm -f $(EXEC) $(OBJS) core *~
