2007-01-15 17:27:24 -07:00
|
|
|
# progs/demos/Makefile
|
|
|
|
|
|
|
|
|
|
TOP = ../..
|
|
|
|
|
include $(TOP)/configs/current
|
|
|
|
|
|
|
|
|
|
INCDIR = $(TOP)/include
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
LIB_DEP = \
|
|
|
|
|
$(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) \
|
|
|
|
|
$(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) \
|
|
|
|
|
$(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
|
2007-01-15 17:27:24 -07:00
|
|
|
|
2009-06-29 10:32:04 -06:00
|
|
|
LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLEW_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
|
2007-10-29 09:03:01 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
INCLUDE_DIRS = -I$(TOP)/progs/util
|
|
|
|
|
|
|
|
|
|
DEMO_SOURCES = \
|
|
|
|
|
array.c \
|
|
|
|
|
bitmap.c \
|
|
|
|
|
brick.c \
|
|
|
|
|
bump.c \
|
|
|
|
|
convolutions.c \
|
|
|
|
|
deriv.c \
|
|
|
|
|
fragcoord.c \
|
|
|
|
|
identity.c \
|
|
|
|
|
linktest.c \
|
|
|
|
|
mandelbrot.c \
|
|
|
|
|
multinoise.c \
|
|
|
|
|
multitex.c \
|
|
|
|
|
noise.c \
|
|
|
|
|
noise2.c \
|
|
|
|
|
pointcoord.c \
|
|
|
|
|
points.c \
|
|
|
|
|
samplers.c \
|
|
|
|
|
shadow_sampler.c \
|
|
|
|
|
skinning.c \
|
|
|
|
|
texaaline.c \
|
|
|
|
|
texdemo1.c \
|
|
|
|
|
toyball.c \
|
|
|
|
|
trirast.c \
|
|
|
|
|
twoside.c \
|
|
|
|
|
vert-or-frag-only.c \
|
|
|
|
|
vert-tex.c
|
|
|
|
|
|
|
|
|
|
UTIL_HEADERS = \
|
|
|
|
|
extfuncs.h \
|
|
|
|
|
shaderutil.h \
|
|
|
|
|
readtex.h
|
|
|
|
|
|
|
|
|
|
UTIL_SOURCES = \
|
|
|
|
|
shaderutil.c \
|
|
|
|
|
readtex.c
|
|
|
|
|
|
|
|
|
|
UTIL_OBJS = $(UTIL_SOURCES:.c=.o)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PROGS = $(DEMO_SOURCES:%.c=%)
|
|
|
|
|
|
2007-01-15 17:27:24 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
##### RULES #####
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
# make .o file from .c file:
|
|
|
|
|
.c.o:
|
|
|
|
|
$(APP_CC) -c -I$(INCDIR) $(CFLAGS) $< -o $@
|
2007-01-15 17:27:24 -07:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
# make executable from .o files
|
|
|
|
|
.o:
|
|
|
|
|
$(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(UTIL_OBJS) $(LIBS) -o $@
|
2007-01-15 17:27:24 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
##### TARGETS #####
|
|
|
|
|
|
|
|
|
|
default: $(PROGS)
|
|
|
|
|
|
2007-01-16 14:55:43 -07:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
clean:
|
|
|
|
|
-rm -f $(PROGS)
|
|
|
|
|
-rm -f *.o *~
|
|
|
|
|
-rm -f extfuncs.h
|
|
|
|
|
-rm -f shaderutil.*
|
2009-06-01 11:23:39 -06:00
|
|
|
-rm -f readtex.*
|
2009-04-18 14:18:59 -06:00
|
|
|
|
|
|
|
|
|
2007-01-16 14:55:43 -07:00
|
|
|
|
|
|
|
|
##### Extra dependencies
|
2007-01-15 17:27:24 -07:00
|
|
|
|
2009-06-01 11:23:39 -06:00
|
|
|
extfuncs.h: $(TOP)/progs/util/extfuncs.h
|
|
|
|
|
cp $< .
|
2007-01-15 17:27:24 -07:00
|
|
|
|
2009-06-01 11:23:39 -06:00
|
|
|
readtex.c: $(TOP)/progs/util/readtex.c
|
|
|
|
|
cp $< .
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-06-01 11:23:39 -06:00
|
|
|
readtex.h: $(TOP)/progs/util/readtex.h
|
|
|
|
|
cp $< .
|
2007-02-03 11:33:13 -07:00
|
|
|
|
2009-06-01 11:23:39 -06:00
|
|
|
shaderutil.c: $(TOP)/progs/util/shaderutil.c
|
|
|
|
|
cp $< .
|
2007-02-03 11:33:13 -07:00
|
|
|
|
2009-06-01 11:23:39 -06:00
|
|
|
shaderutil.h: $(TOP)/progs/util/shaderutil.h
|
|
|
|
|
cp $< .
|
2007-01-15 17:27:24 -07:00
|
|
|
|
2007-07-29 18:04:23 -06:00
|
|
|
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
array.o: $(UTIL_HEADERS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
array: array.o $(UTIL_OBJS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
bitmap.o: $(UTIL_HEADERS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
bitmap: bitmap.o $(UTIL_OBJS)
|
2009-04-17 16:23:33 -06:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
brick.o: $(UTIL_HEADERS)
|
2009-04-17 16:23:33 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
brick: brick.o $(UTIL_OBJS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
bump.o: $(UTIL_HEADERS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
bump: bump.o $(UTIL_OBJS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
convolutions.o: $(UTIL_HEADERS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
convolutions: convolutions.o $(UTIL_OBJS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
deriv.o: deriv.c $(UTIL_HEADERS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
deriv: deriv.o $(UTIL_OBJS)
|
2008-08-16 09:34:12 -06:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
identity.o: $(UTIL_HEADERS)
|
2008-08-16 09:34:12 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
identity: identity.o $(UTIL_OBJS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2007-01-15 17:27:24 -07:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
fragcoord.o: $(UTIL_HEADERS)
|
2007-01-16 14:55:43 -07:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
fragcoord: fragcoord.o $(UTIL_OBJS)
|
2008-10-07 16:24:43 -06:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
linktest.o: $(UTIL_HEADERS)
|
2008-10-07 16:24:43 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
linktest: linktest.o $(UTIL_OBJS)
|
2008-11-21 10:03:19 -07:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
mandelbrot.o: $(UTIL_HEADERS)
|
2008-11-21 10:03:19 -07:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
mandelbrot: mandelbrot.o $(UTIL_OBJS)
|
2009-04-01 19:53:40 -06:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
multinoise.o: $(UTIL_HEADERS)
|
2007-01-15 17:27:24 -07:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
multinoise: multinoise.o $(UTIL_OBJS)
|
2007-07-29 18:04:23 -06:00
|
|
|
|
2008-05-20 11:01:17 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
multitex.o: $(UTIL_HEADERS)
|
2008-05-20 11:01:17 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
multitex: multitex.o $(UTIL_OBJS)
|
2008-05-20 11:01:17 -06:00
|
|
|
|
2007-02-03 11:33:13 -07:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
noise.o: $(UTIL_HEADERS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
noise: noise.o $(UTIL_OBJS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-04-18 12:54:27 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
noise2.o: $(UTIL_HEADERS)
|
2009-04-18 12:54:27 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
noise2: noise2.o $(UTIL_OBJS)
|
2009-04-18 12:54:27 -06:00
|
|
|
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
points.o: $(UTIL_HEADERS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
points: points.o $(UTIL_OBJS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2008-08-13 08:49:39 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
pointcoord.o: $(UTIL_HEADERS)
|
2008-08-13 08:49:39 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
pointcoord: pointcoord.o $(UTIL_OBJS)
|
2008-08-13 08:49:39 -06:00
|
|
|
|
2009-01-01 14:02:17 -07:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
samplers.o: $(UTIL_HEADERS)
|
2009-01-01 14:02:17 -07:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
samplers: samplers.o $(UTIL_OBJS)
|
2009-01-14 17:01:16 +00:00
|
|
|
|
2009-01-01 14:02:17 -07:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
samplers_array.o: $(UTIL_HEADERS)
|
2008-11-04 16:56:59 -07:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
samplers_array: samplers_array.o $(UTIL_OBJS)
|
2008-11-04 16:56:59 -07:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
shadow_sampler.o: $(UTIL_HEADERS)
|
2007-02-03 11:33:13 -07:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
shadow_sampler: shadow_sampler.o $(UTIL_OBJS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
skinning.o: $(UTIL_HEADERS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
skinning: skinning.o $(UTIL_OBJS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
texaaline.o: $(UTIL_HEADERS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
texaaline: texaaline.o $(UTIL_OBJS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
texdemo1.o: $(UTIL_HEADERS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
texdemo1: texdemo1.o $(UTIL_OBJS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
toyball.o: $(UTIL_HEADERS)
|
2008-12-17 13:58:31 -07:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
toyball: toyball.o $(UTIL_OBJS)
|
2008-12-17 13:58:31 -07:00
|
|
|
|
|
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
twoside.o: $(UTIL_HEADERS)
|
2008-12-02 22:51:39 -07:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
twoside: twoside.o $(UTIL_OBJS)
|
2008-12-02 22:51:39 -07:00
|
|
|
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
trirast.o: $(UTIL_HEADERS)
|
2008-04-09 22:28:23 -06:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
trirast: trirast.o $(UTIL_OBJS)
|
2007-01-15 17:27:24 -07:00
|
|
|
|
2009-04-18 14:18:59 -06:00
|
|
|
|
|
|
|
|
vert-or-frag-only.o: $(UTIL_HEADERS)
|
|
|
|
|
|
|
|
|
|
vert-or-frag-only: vert-or-frag-only.o $(UTIL_OBJS)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vert-tex.o: $(UTIL_HEADERS)
|
|
|
|
|
|
|
|
|
|
vert-tex: vert-tex.o $(UTIL_OBJS)
|