singe/thirdparty/SDL2_mixer/external/libxmp/lite/Makefile.vc.in
2023-10-23 19:38:18 -05:00

39 lines
871 B
Text

# Visual Studio makefile for Windows:
# nmake -f Makefile.vc
#
# To disable Impulse Tracker support :
# nmake -f Makefile.vc DISABLE_IT=1
#
CC = cl
CFLAGS = /O2 /W3 /MD /Iinclude\libxmp-lite /DBUILDING_DLL /DWIN32 \
/D_USE_MATH_DEFINES /D_CRT_SECURE_NO_WARNINGS /DLIBXMP_CORE_PLAYER
#CFLAGS = $(CFLAGS) /DDEBUG
LD = link
LDFLAGS = /DLL /RELEASE /OUT:$(DLL)
DLL = libxmp-lite.dll
!if $(DISABLE_IT)==1
CFLAGS = $(CFLAGS) /DLIBXMP_CORE_DISABLE_IT
!endif
OBJS = @OBJS@
TEST = src\md5.obj test\test.obj
.c.obj:
$(CC) /c /nologo $(CFLAGS) /Fo$*.obj $<
all: $(DLL)
$(DLL): $(OBJS)
$(LD) $(LDFLAGS) $(OBJS)
clean:
del $(OBJS) $(DLL) *.lib *.exp
del $(TEST)
del test\*.dll test\*.exe
check: $(TEST)
$(LD) /RELEASE /OUT:test\libxmp-lite-test.exe $(TEST) libxmp-lite.lib
copy libxmp-lite.dll test
cd test & libxmp-lite-test