singe/thirdparty/SDL3_mixer/external/libxmp/lite/Makefile.vc.in
2026-09-03 22:01:35 -05:00

45 lines
985 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
DISABLE_IT = 0
!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)
# use a temporary response file
$(DLL): $(OBJS)
$(LD) $(LDFLAGS) @<<libxmp-lite.rsp
$(OBJS)
<<
clean:
-del src\*.obj
-del src\loaders\*.obj
-del test\*.obj
-del test\*.dll test\*.exe
-del *.dll *.lib *.exp
check: $(TEST)
$(LD) /RELEASE /OUT:test\libxmp-lite-test.exe $(TEST) libxmp-lite.lib
copy libxmp-lite.dll test
cd test & libxmp-lite-test