spiegel-keyman/windows/src/engine/keymanmc/Makefile
Marc Durdin dee896b4c6 chore(windows): move from Borland make to nmake
While it may be smarter to move to a different build system altogether,
it is also a *lot* more work. This was a fairly minor syntax refresh to
get nmake working with our existing Makefile system. This is now no
longer compatible with Borland make, so you will need to use `nmake` to
build.

The presence of NMAKE.md informs builds systems that nmake should be
used instead of make.
2021-12-06 12:47:31 +04:00

33 lines
1.1 KiB
Makefile

#
# Keymanmc Makefile
#
!include ..\..\Defines.mak
build:
mc -U keymanmc.mc
rc keymanmc.rc
link -dll -noentry keymanmc.res
$(COPY) keymanmc.dll $(PROGRAM)\engine
clean: def-clean
-del keymanmc.rc
-del keymanmc.h
-del keymanmc.dll
-del keymanmc.res
-del MSG00409.bin
signcode:
$(SIGNCODE) /d "Keyman Engine" $(PROGRAM)\engine\keymanmc.dll
wrap-symbols:
rem no symbols
install:
$(COPY) $(PROGRAM)\engine\keymanmc.dll "$(INSTALLPATH_KEYMANENGINE)\keymanmc.dll"
reg add HKLM\SYSTEM\CurrentControlSet\services\eventlog\Application\Keyman /v CategoryCount /t REG_DWORD /d 1 /f
reg add HKLM\SYSTEM\CurrentControlSet\services\eventlog\Application\Keyman /v CategoryMessageFile /t REG_SZ /d "$(INSTALLPATH_KEYMANENGINE)\keymanmc.dll" /f
reg add HKLM\SYSTEM\CurrentControlSet\services\eventlog\Application\Keyman /v EventMessageFile /t REG_SZ /d "$(INSTALLPATH_KEYMANENGINE)\keymanmc.dll" /f
reg add HKLM\SYSTEM\CurrentControlSet\services\eventlog\Application\Keyman /v TypesSupported /t REG_DWORD /d 7 /f
!include ..\..\Target.mak