# For the applicable copyright information see any of the 
# source files and the documentation.

INC_DEFS = -I../h -I../release
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

print:	$(SRC) Makefile
	$(SOURCE_CODE_PRINT_COMMAND) Makefile $(SRC)

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

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

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

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