2018-01-07 20:13:20 +01:00
|
|
|
#
|
|
|
|
# external libs
|
|
|
|
#
|
|
|
|
|
2021-08-10 23:54:04 +02:00
|
|
|
# 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
|
2018-01-07 20:13:20 +01:00
|
|
|
|
2023-01-15 20:11:00 +01:00
|
|
|
# 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)
|
2008-06-15 07:43:40 +02:00
|
|
|
|
2023-01-15 20:11:00 +01:00
|
|
|
# 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
|
|
|
|
2008-06-15 07:43:40 +02:00
|
|
|
clean:
|
2023-01-15 21:10:44 +01:00
|
|
|
$(RMF) $(DLL_DIR)/*.dll.a
|
2018-01-07 20:13:20 +01:00
|
|
|
|
|
|
|
.PHONY: clean
|