# Makefile for Netscape Hangul PS file filter
# Lee yongjae, setup@shiva.snu.ac.kr, 1997.1.22.

CC=cc
CFLAG=-O

ALL = nhpf wrapstr

.c.o:
	$(CC) $(CFLAG) -c $<

all: $(ALL)
clean:
	rm -f $(ALL) *.str *.o

nhpf: nhpf.o ncode.o
	$(CC) -o nhpf nhpf.o ncode.o
	rm -f wrapstr

wrapstr: wrapstr.c
	$(CC) $(CFLAG) -o wrapstr wrapstr.c

nhpf.o: ncode.h fontdef.str n3f-5.str n3f-5b.str 

n3f-5.str: n3f-5.gsf wrapstr
	./wrapstr < n3f-5.gsf > n3f-5.str

n3f-5b.str: n3f-5b.gsf wrapstr
	./wrapstr < n3f-5b.gsf > n3f-5b.str

fontdef.str: fontdef.ps wrapstr
	./wrapstr < fontdef.ps > fontdef.str
