EXE_SDLNEXUIZ=$(EXE_WINSDLNEXUIZ)
endif
+ifeq ($(WIN32RELEASE), 1)
+ CPUOPTIMIZATIONS=-march=i686 -DSUPPORTDIRECTX -DUSE_WSPIAPI_H
+endif
+
+ifeq ($(WIN64RELEASE), 1)
+ CPUOPTIMIZATIONS=
+endif
+
##### Sound configuration #####
ifndef DP_SOUND_API
##### Extra CFLAGS #####
-CFLAGS_MAKEDEP?=-MD
+CFLAGS_MAKEDEP?=-MMD
ifdef DP_FS_BASEDIR
CFLAGS_FS=-DDP_FS_BASEDIR='\"$(DP_FS_BASEDIR)\"'
else
endif
endif
+ifdef DP_LINK_TO_LIBJPEG
+ LDFLAGS_LIBJPEG?=-ljpeg
+ LDFLAGS_CL+=$(LDFLAGS_LIBJPEG)
+ LDFLAGS_SV+=$(LDFLAGS_LIBJPEG)
+ LDFLAGS_SDL+=$(LDFLAGS_LIBJPEG)
+ CFLAGS_PRELOAD+=$(CFLAGS_LIBJPEG) -DLINK_TO_LIBJPEG
+endif
+
##### GNU Make specific definitions #####
DO_LD=$(CC) -o $@ $^ $(LDFLAGS)