#	@(#)Makefile	1.1 U of T Physics 2/24/88

SRC = lp.c lock.c
OBJS = lp.o lock.o
BIN = /usr/bin
LP = lp -s
LINTFLAGS = -DLINT

# for symbolic debugger
# CFLAGS = -g
# CDBOBJ = /usr/lib/end.o

lptry:	$(OBJS)
	cc -o lptry $(OBJS) $(CDBOBJ)

install:	lptry
	strip lptry
	mv $(BIN)/lp $(BIN)/real_lp
	cpset lptry $(BIN) 0755

lint:	
	lint $(LINTFLAGS) $(SRC)

clean:
	/bin/rm -f *.o core

print:	Makefile $(SRC)
	pr $? | $(LP)
	touch print
