LIBS = 		-lX11 -lpixrect

INCLUDES =	-I../include

PROGRAM = 	pip-pos

CFLAGS = 	-O ${INCLUDES} -DSPARC

SRC = 		main.c util.c io.c xrefresh.c

OBJS = 		main.o util.o io.o xrefresh.o

default:	${PROGRAM}

${PROGRAM}:	${OBJS} 
		cc -o ${PROGRAM} ${OBJS} ${LIBS}
		strip ${PROGRAM}

debug:		${OBJS}
		cc -g -o ${PROGRAM} ${OBJS} ${LIBS}

lint:		lintout

lintout:	${SRC}
		lint -u -v -h ${INCLUDES} $(SRC) -lm > lintout

clean:
		rm -f *.o *.out *.BAK errors core ${PROGRAM}

tags:		${SRC}
		ctags ${SRC}

depend:		
		cp Makefile Makefile.BAK
		/usr/bin/X11/makedepend ${INCLUDES} ${SRC} ${HDRS}

# DO NOT DELETE THIS LINE -- make depend depends on it.

