vgmstream/ext_libs/Makefile

22 lines
597 B
Makefile
Raw Normal View History

#
# 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)
2023-01-15 21:10:44 +01:00
%.dll.a:
2023-02-09 21:22:27 +01:00
$(DLLTOOL) -D $(DLL_DIR)/$(patsubst %.dll.a,%.dll,$@) -d $(patsubst %.dll.a,%.def,$@) -l $(DLL_DIR)/$@
2021-01-12 15:11:24 +01:00
clean:
2023-01-15 21:10:44 +01:00
$(RMF) $(DLL_DIR)/*.dll.a
.PHONY: clean