vgmstream/ext_libs/Makefile
bnnm 8f552c5cd1 build: use .dll.a instead of .a for link libs
- more consistent with mingw's usage (not standard static libs)
2023-01-15 20:11:00 +01:00

22 lines
543 B
Makefile

#
# external libs
#
# don't barf in case it's target "clean"
#ifneq ($(TARGET_OS),Windows_NT)
#$(error option must be built with TARGET_OS = Windows_NT)
#endif
# generate linker libs for Mingw's GCC (usually named *.dll.a on Windows), using:
# dlltool [-D (lib).dll] -d (lib).def -l (lib).dll.a
# -D is optional, but needed if DLL was renamed (like libcelts)
# patterns match ($@ = target, $< = dependency, for others substitute)
%.dll.a : %.def
$(DLLTOOL) -D $(patsubst %.def,%.dll,$<) -d $< -l $@
clean:
$(RMF) *.dll.a
.PHONY: clean