#!smake # Because some of the examples make direct call to either GLU, GL, # or to the math library, we need to add "-lGL -lX11 -lm" to the link # line to prevent multiple Makefiles. A user only needs to add # a library to the link line if a programs makes direct calls to it. # # The previous magic comment will cause the parallel make utility # 'smake' to be used. # ---------------------------------------------------------------------- # Makefile for exercise 09 # # To make the exercise, type: # make # or double-click on "Makefile" # ---------------------------------------------------------------------- # # Programs to be created: PROGRAMS = exercise09 # /usr/include/make/commondefs and /usr/include/make/commonrules # define some useful Makefile rules. For example, they # defines a 'clean' target, so you can type 'make clean' # to remove all .o files (or other files generated during # compilation). See the file /usr/include/make/commonrules for # documentation on what targets are supported. include /usr/include/make/commondefs TARGETS = $(PROGRAMS) LLDLIBS = -lGLU -lm -lInventorXt C++FILES = $(PROGRAMS:=.c++) default: $(PROGRAMS) include $(COMMONRULES) $(PROGRAMS): $$@.c++ $(C++F) -o $@ $@.c++ $(LDFLAGS)