# # @(#)Makefile.customer 1.3 91/09/14 SMI # # Makefile for the Olit Programmer's Guide's Examples # #CC = /opt/SUNWspro/bin/cc CC = cc INCLUDE = -I${OPENWINHOME}/include # # If you want to compile for debugging, change "-O" to "-g" # #CFLAGS = ${INCLUDE} -g -DDEBUG CFLAGS = ${INCLUDE} -O # if you want special to pass special loader options to ld, set # LDFLAGS= ... # LIBS = -L${OPENWINHOME}/lib -R${OPENWINHOME}/lib:/usr/lib \ -ltt \ -lXol \ -lXt \ -lX11 \ -lnsl TARGETS = client \ client-nogui \ server \ animate \ dispserver \ populate \ reader all: ${TARGETS} client: client.c client.h client.o sunraster.o ${CC} ${CFLAGS} -o client client.o sunraster.o ${LIBS} client-nogui: client-nogui.c client.h client-nogui.o ${CC} ${CFLAGS} -o client-nogui client-nogui.o ${LIBS} animate: animate.c animate.o ${CC} ${CFLAGS} -o animate animate.o sunraster.o ${LIBS} populate: populate.c data.h populate.o ${CC} ${CFLAGS} ${LDFLAGS} -o populate populate.o reader: reader.o reader.c ${CC} ${CFLAGS} ${LDFLAGS} -o reader reader.o server: server.o server.c list.h data.h server.h list.o ${CC} -O -o server server.o list.o -lnsl dispserver: dispserver.o dispserver.c dispserver.h ${CC} ${CFLAGS} ${LDFLAGS} -o dispserver dispserver.o ${LIBS} list.o: list.c list.h ${CC} -O -c list.c sunraster.o: sunraster.c sunraster.h rasterfile.h archdep.h ${CC} ${CFLAGS} -c sunraster.c clean: rm -f core *.o ${TARGETS}