CC = cc DEBUG = -O #if HP, use this one #CFLAGS = $(DEBUG) -I/usr/include/Motif1.2 # else CFLAGS = # If SUN, use this lib #LIBS = -lXm -lXt -lX11 -lgen -lnsl -lsocket #if HP, use this #LIBS = -L/usr/lib/Motif1.2 -L/usr/lib/X11R5 -lXm -lXt -lX11 #if sgi use LIBS = -lXm -lXt -lX11 -lcurses -lm TARGETS= xdcg cdcg all: $(TARGETS) xdcg: xdcg.o $(CC) $(CFLAGS) -o $@ $@.o $(LIBS) cdcg: cdcg.o $(CC) $(CFLAGS) -o $@ $@.o $(LIBS) clobber: rm -f *.o *~* *.a rm -f $(TARGETS)