# Makefile for SGI's OpenGL widgets ##### MACROS ##### MAJOR = 1 MINOR = 0 TINY = 0 TOP = ../.. VPATH = RCS INCDIRS = -I$(TOP)/include -I/usr/include/Motif1.2 -I/usr/contrib/X11R6/include -I/usr/X11R6/include LIBDIR = $(TOP)/lib # Use these sources for Motif (and Xt) support. Requires Motif header files. #SOURCES = GLwDrawA.c GLwMDrawA.c # OR, use these sources for non-Motif (Xt only) build: SOURCES = GLwDrawA.c OBJECTS = $(SOURCES:.c=.o) ##### RULES ##### .c.o: $(CC) -c $(INCDIRS) $(CFLAGS) $< ##### TARGETS ##### default: @echo "Specify a target configuration" clean: -rm -f *.o *~ targets: $(LIBDIR)/$(GLW_LIB) message # Make the library $(LIBDIR)/$(GLW_LIB): $(OBJECTS) $(TOP)/bin/mklib -o GLw -major $(MAJOR) -minor $(MINOR) \ -patch $(TINY) $(GLW_LIB_DEPS) -install $(LIBDIR) \ $(MKLIB_OPTIONS) $(OBJECTS) message: @echo @echo "************************************************************************" @echo "*** Edit widgets-sgi/Makefile.X11 to enable Motif support, if needed ***" @echo "************************************************************************" @echo include $(TOP)/Make-config include depend # # Run 'make depend' to update the dependencies if you change what's included # by any source file. # dep: $(SOURCES) makedepend -fdepend -Y -I$(TOP)/include $(SOURCES)