# if you don't have XILHOME set, we look in default place
XIL_INSTALL_PT=/opt/SUNWits/Graphics-sw/xil

CFLAGS = -I$(XILHOME)/include -I$(XIL_INSTALL_PT)/include -I$(OPENWINHOME)/include -D_REENTRANT

LIBS = -L$(XILHOME)/lib -L$(XIL_INSTALL_PT)/lib -L$(OPENWINHOME)/lib -R $(XIL_INSTALL_PT)/lib:/usr/openwin/lib

install := LIBS += -lxil -lX11 -ldl -ldga -lthread
# -lthread doesn't work with SPARCworks C 2.0.1 debugger
debug_install := LIBS += -lxil -lX11 -ldl -ldga
debug_install := CFLAGS += -g

install: xil_compress
debug_install: xil_compress

debug: debug_install

xil_compress: xil_compress.o
	$(CC) -o $@ xil_compress.o $(LIBS) 

clean:
	rm -f a.out core xil_compress *.o




