4 include $(TOP
)/configs
/current
6 INCDIR
= $(TOP
)/include
9 $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
) \
10 $(TOP
)/$(LIB_DIR
)/$(GLU_LIB_NAME
) \
11 $(TOP
)/$(LIB_DIR
)/$(GLUT_LIB_NAME
)
13 LIBS
= -L
$(TOP
)/$(LIB_DIR
) -l
$(GLUT_LIB
) -l
$(GLEW_LIB
) -l
$(GLU_LIB
) -l
$(GL_LIB
) $(APP_LIB_DEPS
)
15 INCLUDE_DIRS
= -I
$(TOP
)/progs
/util
17 # using : to avoid APP_CC pointing to CC loop
61 UTIL_OBJS
= $(UTIL_SOURCES
:.c
=.o
)
62 PROG_OBJS
= $(DEMO_SOURCES
:.c
=.o
)
63 PROGS
= $(DEMO_SOURCES
:%.c
=%)
69 $(PROG_OBJS
): $(UTIL_HEADERS
)
71 $(PROGS
): $(UTIL_OBJS
)
81 ##### Extra dependencies
83 samplers_array.o
: samplers.c
84 $(APP_CC
) $(CFLAGS
) -DSAMPLERS_ARRAY
$< -c
-o
$@
86 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
89 readtex.c
: $(TOP
)/progs
/util
/readtex.c
92 readtex.h
: $(TOP
)/progs
/util
/readtex.h
95 shaderutil.c
: $(TOP
)/progs
/util
/shaderutil.c
98 shaderutil.h
: $(TOP
)/progs
/util
/shaderutil.h