2009-07-29 20:26:03 +00:00
|
|
|
OBJ=obj.msc
|
|
|
|
INC=include
|
|
|
|
SRC=src
|
|
|
|
JFAUDIOLIB=libjfaudiolib.lib
|
|
|
|
|
2014-02-11 07:39:09 +00:00
|
|
|
!ifndef MIXERTYPE
|
|
|
|
MIXERTYPE=WIN
|
|
|
|
!endif
|
|
|
|
|
2009-07-29 20:26:03 +00:00
|
|
|
!ifdef DEBUG
|
|
|
|
# debugging options
|
|
|
|
flags_cl=/Od /Zi
|
|
|
|
flags_link=/DEBUG
|
|
|
|
flags_lib=
|
|
|
|
!else
|
|
|
|
# release options
|
2014-02-11 07:39:09 +00:00
|
|
|
flags_cl=/Ox /GL
|
|
|
|
!if ($(WINBITS)!=64)
|
|
|
|
flags_cl=$(flags_cl) /arch:SSE
|
|
|
|
!endif
|
2009-07-29 20:26:03 +00:00
|
|
|
flags_link=/RELEASE /LTCG
|
|
|
|
flags_lib=/LTCG
|
|
|
|
!endif
|
|
|
|
|
|
|
|
CC=cl
|
|
|
|
LINK=link /opt:ref /nologo
|
|
|
|
|
2014-02-10 10:59:42 +00:00
|
|
|
PLATFORM=..\..\platform\Windows
|
|
|
|
AUDIOINC=third-party\common
|
2009-07-29 20:26:03 +00:00
|
|
|
|
2014-02-10 10:59:42 +00:00
|
|
|
CFLAGS=$(CFLAGS) /nologo /MT /J $(flags_cl) $(TARGETOPTS) /I$(INC) /I$(SRC) /I$(PLATFORM)\include /I$(AUDIOINC)\include
|
2009-07-29 20:26:03 +00:00
|
|
|
!ifdef DEBUG
|
|
|
|
CFLAGS=$(CFLAGS) /DDEBUGGINGAIDS
|
|
|
|
!endif
|
|
|
|
|
2014-02-11 07:39:09 +00:00
|
|
|
CFLAGS=$(CFLAGS) /DMIXERTYPE$(MIXERTYPE)=1 /DSDL_FRAMEWORK /DSDL_TARGET=2 /D "_CRT_SECURE_NO_DEPRECATE" /W2 /Iinclude/msvc /DHAVE_VORBIS /DHAVE_FLAC
|
2009-07-29 20:26:03 +00:00
|
|
|
|
|
|
|
OBJECTS=$(OBJ)\drivers.o \
|
|
|
|
$(OBJ)\fx_man.o \
|
|
|
|
$(OBJ)\multivoc.o \
|
|
|
|
$(OBJ)\mix.o \
|
|
|
|
$(OBJ)\mixst.o \
|
|
|
|
$(OBJ)\pitch.o \
|
2012-12-29 10:59:21 +00:00
|
|
|
$(OBJ)\formats.o \
|
2009-07-29 20:26:03 +00:00
|
|
|
$(OBJ)\vorbis.o \
|
2014-02-10 10:59:42 +00:00
|
|
|
$(OBJ)\flac.o \
|
2014-01-27 10:30:00 +00:00
|
|
|
$(OBJ)\xa.o \
|
2014-02-11 07:39:09 +00:00
|
|
|
$(OBJ)\driver_nosound.o
|
|
|
|
|
|
|
|
!if ("$(MIXERTYPE)"=="WIN")
|
|
|
|
CFLAGS=$(CFLAGS) /DHAVE_DS
|
|
|
|
OBJECTS=$(OBJECTS) $(OBJ)/driver_directsound.o
|
|
|
|
!endif
|
|
|
|
!if ("$(MIXERTYPE)"=="SDL")
|
|
|
|
CFLAGS=$(CFLAGS) /DHAVE_SDL
|
|
|
|
OBJECTS=$(OBJECTS) $(OBJ)/driver_sdl.o
|
|
|
|
!endif
|
2009-07-29 20:26:03 +00:00
|
|
|
|
|
|
|
{$(SRC)}.c{$(OBJ)}.o:
|
|
|
|
$(CC) /c $(CFLAGS) /Fo$@ $<
|
|
|
|
|
|
|
|
jfaudiolib: $(JFAUDIOLIB)
|
|
|
|
$(JFAUDIOLIB): $(OBJECTS)
|
2012-12-29 05:22:39 +00:00
|
|
|
lib $(flags_lib) /out:$@ /nologo $**
|
2009-07-29 20:26:03 +00:00
|
|
|
|
|
|
|
clean:
|
2009-07-29 21:56:56 +00:00
|
|
|
-del /Q $(OBJ)\* $(JFAUDIOLIB)
|
2009-07-29 20:26:03 +00:00
|
|
|
|