PRG = hpscat
OBJ = hpscat.o fillbuf.o init.o misc.o ps.o showbuf.o ps_idx.o
SRC = $(OBJ:.o=.c)

# define if you have hangul PS printer 
#CFLAGS = -DHPS -O
CFLAGS = -O
LDFLAGS = -s

$(PRG): $(OBJ)
	$(CC) $(LDFLAGS) -o $@ $(OBJ)

clean:
	rm -f $(OBJ)

ci:
	ci $(SRC)

co:
	co -l $(SRC)

dist: $(SRC)
	tar cf - $(SRC) hpscat.h Makefile README | gzip > hpscat-1.3.taz

fillbuf.o: hpscat.h
hpscat.o: hpscat.h
init.o: hpscat.h
misc.o: hpscat.h
ps.o: hpscat.h
showbuf.o: hpscat.h
