INC_DEFS = -I../h
DEFS = -DSYS_V=$(SYS_V)
CFLAGS = $(GFLAG) $(INC_DEFS) $(DEFS)
LIB_DIR = ../lib
SRC = printpdr.c
OBJ = printpdr.o

all:	printpdr

install:	printpdr
	$(RM)                   $(PFD_BINDIR)/printpdr
	install -c -s printpdr  $(PFD_BINDIR)/printpdr

printpdr:	$(OBJ)
	@$(RM) $@ lint
	@cd $(LIB_DIR); make
	@cd ../otherc; make
	$(CC) -o $@ $(OBJ) ../otherc/sig.o ../otherc/defaults.o $(LIB_DIR)/libics.a

clean::
	$(RM) printpdr

lint:	$(SRC) Makefile
	lint $(INC_DEFS) $(SRC) > $@

relink:
	@$(RM) printpdr
	@make  printpdr

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

# DO NOT DELETE THIS LINE - make depend DEPENDS ON IT
A=../h

printpdr.o: $A/char.h $A/defs.h $A/extfil.h $A/fontd.h $A/pdr.h $A/units.h \
	printpdr.c printpdr.h

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