4 include $(TOP
)/configs
/current
6 INCDIR
= $(TOP
)/include
8 OSMESA_LIBS
= -L
$(TOP
)/$(LIB_DIR
) -lglut
-lOSMesa
-lGLU
-lGL
$(APP_LIB_DEPS
)
10 OSMESA16_LIBS
= -L
$(TOP
)/$(LIB_DIR
) -lglut
-lOSMesa16
-lGLU
-lGL
$(APP_LIB_DEPS
)
12 OSMESA32_LIBS
= -L
$(TOP
)/$(LIB_DIR
) -lglut
-lOSMesa32
-lGLU
-lGL
$(APP_LIB_DEPS
)
14 LIB_DEP
= $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
) $(TOP
)/$(LIB_DIR
)/$(GLU_LIB_NAME
) $(TOP
)/$(LIB_DIR
)/$(GLUT_LIB_NAME
)
76 # make executable from .c file:
77 .c
: $(LIB_DEP
) readtex.o
78 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $< readtex.o
$(APP_LIB_DEPS
) -o
$@
87 readtex.c
: $(TOP
)/progs
/util
/readtex.c
90 readtex.h
: $(TOP
)/progs
/util
/readtex.h
93 readtex.o
: readtex.c readtex.h
94 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) readtex.c
97 showbuffer.c
: $(TOP
)/progs
/util
/showbuffer.c
100 showbuffer.h
: $(TOP
)/progs
/util
/showbuffer.h
103 showbuffer.o
: showbuffer.c showbuffer.h
104 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) showbuffer.c
107 trackball.c
: $(TOP
)/progs
/util
/trackball.c
110 trackball.h
: $(TOP
)/progs
/util
/trackball.h
113 trackball.o
: trackball.c trackball.h
114 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) trackball.c
117 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
121 reflect
: reflect.o showbuffer.o readtex.o
122 $(CC
) reflect.o showbuffer.o readtex.o
$(APP_LIB_DEPS
) -o
$@
124 reflect.o
: reflect.c showbuffer.h
125 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) reflect.c
128 shadowtex
: shadowtex.o showbuffer.o
129 $(CC
) shadowtex.o showbuffer.o
$(APP_LIB_DEPS
) -o
$@
131 shadowtex.o
: shadowtex.c showbuffer.h
132 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) shadowtex.c
135 gloss
: gloss.o trackball.o readtex.o
136 $(CC
) gloss.o trackball.o readtex.o
$(APP_LIB_DEPS
) -o
$@
138 gloss.o
: gloss.c trackball.h
139 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) gloss.c
142 engine
: engine.o trackball.o readtex.o
143 $(CC
) engine.o trackball.o readtex.o
$(APP_LIB_DEPS
) -o
$@
145 engine.o
: engine.c trackball.h
146 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) engine.c
150 $(CC
) fslight.o
$(APP_LIB_DEPS
) -o
$@
152 fslight.o
: fslight.c extfuncs.h
153 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) fslight.c
158 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $< readtex.o
$(APP_LIB_DEPS
) -L.
-lgltc
-o
$@
164 -rm -f readtex.
[ch
] showbuffer.
[ch
]