INSTALL_BIN_DIR=/usr/local/pcn1.2/bin
EXE_FILE_MODE=755

CC = cc
CFLAGS = -I. -O

OBJS = make-states.o regexp.o assoc.o

build:	make-states

install:	make-states
	cp make-states $(INSTALL_BIN_DIR)/.
	chmod $(EXE_FILE_MODE) $(INSTALL_BIN_DIR)/make-states

all: make-states

# Sample makefile rule for make-states
eventdefs.h states.sts: make-states event.example
	make-states event.example eventdefs.h states.sts

make-states: $(OBJS)
	$(CC) $(CFLAGS) -o make-states $(OBJS)

clean:
	-/bin/rm -f *~ *.o make-states

.c.o:
	$(CC) $(CFLAGS) -c $*.c

assoc.o : assoc.c assoc.h 
make-states.o : make-states.c regexp.h assoc.h 
regexp.o : regexp.c regexp.h regmagic.h 
