LIB_DIR = ../../lib
SRC = writecap.c
OBJ = writecap.o
INCS = -I. -I../../h
CFLAGS = $(GFLAG) $(INCS)

all:	fonts.dvitps
	
relink:
	$(RM) writecap
	make all

fonts.dvitps:	writecap Makefile
	./writecap $@ GF "$(DVITPS_GF)" PK "$(DVITPS_PK)" PXL "$(DVITPS_PXL)" PDR "$(DVITPS_PDR)"

writecap:	$(OBJ)
	cd ../../otherc; make
	cc -o $@ $(OBJ) ../../otherc/defaults.o $(LIB_DIR)/libics.a

install:
	-mkdir           $(DVITPS_CAP_DIR)
	$(CP) fonts.dvitps  $(DVITPS_CAP_DIR)

print:
	$(PRINT_COMMAND) Makefile $(SRC)

depend:	$(SRC)
	maketd -mIMakefile $(INCS) $(SRC)

lint:	$(SRC)
	$(RM) $@
	lint $(INCS) $(SRC) > $@

clean::
	$(RM) writecap fonts.dvitps
# DO NOT DELETE THIS LINE - make depend DEPENDS ON IT
A=../../h

writecap.o: $A/extfil.h writecap.c

# *** Do not add anything here - It will go away. ***
