#
#	   Makefile for XPIS programm 
#		version for SunOS
#	---------------------------------
#	Thomas.Breitfeld@infotech.tu-chemnitz.de
#	August 18 1994
#
#  specify compiler

CC		= gcc

#
#  Path for include directories

INCLUDE 	= -I${OPENWINHOME}/include

#
#  If you want to compile for debugging, change "-O" to "-g"

CFLAGS		= ${INCLUDE} -O

#
#  if you want special to pass special loader options to ld, set
#  LDFLAGS= ...
#

LIBS	 	= -L${OPENWINHOME}/lib \
		  -lxview -lolgx -lX11 -lkvm

#

OBJS	   	= xps.o \
		  s_getpst.o \
		  paint.o \
		  filter.o \
		  callback.o \
		  misc.o \
		  username.o \
		  control.o \
		  icon.o \
		  xpsgc.o \
		  prop.o

all:  xps

xps:   ${OBJS}
	${CC} ${CFLAGS} ${LDFLAGS} -o xps ${OBJS} ${LIBS}

xps.o:  	xpis.h filter.h xpsgc.h paint.h pst.h keys.h callback.h \
		control.h icon.h \
		icons/fb.icon icons/ff.icon icons/goahead.icon \
		icons/replay.icon icons/stop.icon
getpst.o:	xpis.h pst.h 
paint.o: 	xpis.h paint.h filter.h misc.h xpsgc.h prop.h
filter.o:	xpis.h filter.h pst.h paint.h uname.h misc.h
callback.o:	xpis.h callback.h filter.h paint.h misc.h keys.h control.h \
		prop.h xpsgc.h
misc.o:		xpis.h misc.h 
username.o:	xpis.h uname.h misc.h
icon.o:		xpis.h icon.h icons/xps1.icon icons/xps2.icon \
		icons/xps3.icon icons/xps0.icon icons/xpsmask.icon
control.o:	xpis.h control.h pst.h callback.h keys.h icon.h
xpsgc.o:	xpis.h xpsgc.h \
		icons/K_fun.icon icons/K_medium.icon icons/K_small.icon \
		icons/S_fun.icon icons/S_medium.icon icons/S_small.icon \
		icons/R_fun.icon icons/R_medium.icon icons/R_small.icon \
		icons/T_fun.icon icons/T_medium.icon icons/T_small.icon \
		icons/W_fun.icon icons/W_medium.icon icons/W_small.icon \
		icons/Z_fun.icon icons/Z_medium.icon icons/Z_small.icon 
prop.o:		xpis.h prop.h pst.h paint.h misc.h keys.h

clean:
	rm -f core ${OBJS} 
