#!/usr/sbin/pmake -v
###################
# compiler switches
###################
CC	= cc
INCLUDE	= -I/usr/include
CFLAGS	= -xansi -prototypes -g
SRC	= hpgl2scr.c
DEST	= /usr/local/bin
		
ALL	= $(SRC:.c=)
LIBS    = 

all:	$(ALL)
	@echo "make all completed"

$(ALL):	$$@.c
	$(CC) $(CFLAGS) $(INCLUDE) $? -o $@ $(LIBS) 
	strip $@
	-rm -f *.o

install: $(ALL)
	/etc/install -o -s -F $(DEST) $(ALL)

clean:
	rm -f $(ALL)
	-rm -f *.o
	@echo "all clean now"

neat:
	rm .[BC]* .em* *.BA* *.CK* *.bak *.o 
	@echo "all neat now"

