4 include $(TOP
)/configs
/current
6 INCDIR
= $(TOP
)/include
8 LIB_DEP
= $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
) $(TOP
)/$(LIB_DIR
)/$(GLU_LIB_NAME
) \
9 $(TOP
)/$(LIB_DIR
)/$(GLUT_LIB_NAME
)
11 LIBS
= -L
$(TOP
)/$(LIB_DIR
) -l
$(GLUT_LIB
) -l
$(GLEW_LIB
) -l
$(GLU_LIB
) -l
$(GL_LIB
) \
75 # make executable from .c file:
76 .c
: $(LIB_DEP
) readtex.o
77 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) $< readtex.o
$(LIBS
) -o
$@
86 readtex.c
: $(TOP
)/progs
/util
/readtex.c
89 readtex.h
: $(TOP
)/progs
/util
/readtex.h
92 readtex.o
: readtex.c readtex.h
93 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) readtex.c
96 showbuffer.c
: $(TOP
)/progs
/util
/showbuffer.c
99 showbuffer.h
: $(TOP
)/progs
/util
/showbuffer.h
102 showbuffer.o
: showbuffer.c showbuffer.h
103 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) showbuffer.c
106 trackball.c
: $(TOP
)/progs
/util
/trackball.c
109 trackball.h
: $(TOP
)/progs
/util
/trackball.h
112 trackball.o
: trackball.c trackball.h
113 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) trackball.c
116 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
120 reflect
: reflect.o showbuffer.o readtex.o
121 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) reflect.o showbuffer.o readtex.o
$(LIBS
) -o
$@
123 reflect.o
: reflect.c showbuffer.h
124 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) reflect.c
127 gloss
: gloss.o trackball.o readtex.o
128 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) gloss.o trackball.o readtex.o
$(LIBS
) -o
$@
130 gloss.o
: gloss.c trackball.h
131 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) gloss.c
134 engine
: engine.o trackball.o readtex.o
135 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) engine.o trackball.o readtex.o
$(LIBS
) -o
$@
137 engine.o
: engine.c trackball.h
138 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) engine.c
141 fbotexture
: fbotexture.o
142 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) fbotexture.o
$(LIBS
) -o
$@
144 fbotexture.o
: fbotexture.c extfuncs.h
145 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) fbotexture.c
149 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) fslight.o
$(LIBS
) -o
$@
151 fslight.o
: fslight.c extfuncs.h
152 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) fslight.c
154 rain
: particles.o rain.o readtex.o
155 $(CXX
) $(CXXFLAGS
) $(LDFLAGS
) $^
$(LIBS
) -o
$@
157 rain.o
: rain.
cxx readtex.h
158 $(CXX
) -c
-I
$(INCDIR
) $(CXXFLAGS
) $<
160 particles.o
: particles.
cxx
161 $(CXX
) -c
-I
$(INCDIR
) $(CXXFLAGS
) $<
165 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $< readtex.o
$(LIBS
) -L.
-lgltc
-o
$@
171 -rm -f readtex.
[ch
] showbuffer.
[ch
]