+JPEGSRCS := $(foreach f,$(JPEGSRCS),$(JPEGLIBDIR)/$(f))
+
+
+ZLIBSRCS = \
+ adler32.c \
+ compress.c \
+ crc32.c \
+ deflate.c \
+ gzio.c \
+ infback.c \
+ inffast.c \
+ inflate.c \
+ inftrees.c \
+ trees.c \
+ uncompr.c \
+ zutil.c \
+
+ZLIBSRCS := $(foreach f,$(ZLIBSRCS),$(ZLIBDIR)/$(f))
+
+
+GLUSRCS := \
+ dict.c \
+ geom.c \
+ memalloc.c \
+ mesh.c \
+ mipmap.c \
+ normal.c \
+ priorityq.c \
+ render.c \
+ sweep.c \
+ tess.c \
+ tessmono.c \
+ util.c \
+
+GLUSRCS := $(foreach f,$(GLUSRCS),$(GLUDIR)/$(f))
+
+
+OGGSRCS := \
+ bitwise.o \
+ framing.o
+
+OGGSRCS := $(foreach f,$(OGGSRCS),$(LIBOGGDIR)/src/$(f))
+
+VORBISSRCS := \
+ analysis.o \
+ bitrate.o \
+ block.o \
+ codebook.o \
+ envelope.o \
+ floor0.o \
+ floor1.o \
+ info.o \
+ lpc.o \
+ lsp.o \
+ mapping0.o \
+ mdct.o \
+ psy.o \
+ registry.o \
+ res0.o \
+ sharedbook.o \
+ smallft.o \
+ synthesis.o \
+ vorbisfile.o \
+ window.o
+
+VORBISSRCS := $(foreach f,$(VORBISSRCS),$(LIBVORBISDIR)/lib/$(f))
+
+ifeq ($(strip $(macosx)),false)
+ SRCS += $(GLUSRCS)
+endif
+
+ifeq ($(strip $(use_devil)),false)
+ SRCS += $(PNGSRCS) $(JPEGSRCS) $(ZLIBSRCS)
+endif
+
+ifeq ($(strip $(use_fmod)),false)
+ SRCS += $(OGGSRCS) $(VORBISSRCS)
+endif
+
+OBJS := $(SRCS:.CC=.o)
+OBJS := $(OBJS:.cc=.o)
+OBJS := $(OBJS:.cpp=.o)