# CS425 Imakefile F'2002 # for example bezcurve & bezmesh # # put source file names here separated by spaces # For example: SRCS = bezcurve.c bezmesh.c # If you need to continue the line put a back slash at the end # For example # SRCS = bezcurve.c \ # bezmesh.c # SRCS= bezcurve.c bezmesh.c texturesurf.c bezier.c demo.c surface.c # put object file names here separated by spaces OBJS = bezcurve.o bezmesh.o texturesurf.o bezier.o demo.o surface.o # Uncomment the next line to use debugger # CDEBUGFLAGS = -g #Change the following line to the location of the glut shared library DEP = /usr/lib/libglut.so #Change the following line to the system location for X shared libraries SYS = -lX11 -lXext -lXi -lGL -lGLU -lm # put the run image names in this list that you want "make all" # to make. Separate by spaces, continue lines by back slash. AllTarget(bezcurve bezmesh texturesurf bezier demo surface) # put one of these lines in for each run image you want to be able # to make NormalProgramTarget(bezcurve,bezcurve.o,NullParameter,$(DEP),$(SYS)) NormalProgramTarget(bezmesh,bezmesh.o,NullParameter,$(DEP),$(SYS)) NormalProgramTarget(texturesurf,texturesurf.o,NullParameter,$(DEP),$(SYS)) NormalProgramTarget(bezier,bezier.o,NullParameter,$(DEP),$(SYS)) NormalProgramTarget(demo,demo.o,NullParameter,$(DEP),$(SYS)) NormalProgramTarget(surface,surface.o,NullParameter,$(DEP),$(SYS)) DependTarget() LintTarget() # then save this file as Imakefile and run the command # % xmkmf -a # to build a large Makefile. Then run the make command # % make bezcurve # to build the run image. Then run the bezcurve # % bezcurve # to display the colored triangle.