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
) \
14 -l
$(GL_LIB
) $(APP_LIB_DEPS
)
16 # using : to avoid APP_CC pointing to CC loop
18 CFLAGS
:= -I
$(INCDIR
) $(CFLAGS
)
60 UTIL_OBJS
= $(UTIL_SOURCES
:.c
=.o
)
61 PROG_OBJS
= $(PROG_SOURCES
:.c
=.o
)
62 PROGS
= $(PROG_SOURCES
:%.c
=%)
68 $(PROG_OBJS
): $(UTIL_HEADERS
)
70 $(PROGS
): $(UTIL_OBJS
)
73 $(CC
) $(CFLAGS
) $(LDFLAGS
) $^
$(LDLIBS
) -o
$@
83 ##### Extra dependencies
85 samplers_array.o
: samplers.c
86 $(APP_CC
) $(CFLAGS
) -DSAMPLERS_ARRAY
$< -c
-o
$@
88 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
91 readtex.c
: $(TOP
)/progs
/util
/readtex.c
94 readtex.h
: $(TOP
)/progs
/util
/readtex.h
97 shaderutil.c
: $(TOP
)/progs
/util
/shaderutil.c
100 shaderutil.h
: $(TOP
)/progs
/util
/shaderutil.h