--- q_a/samples/resdll/makefile 2018/08/09 18:29:51 1.1.1.3 +++ q_a/samples/resdll/makefile 2018/08/09 18:30:20 1.1.1.4 @@ -1,5 +1,11 @@ !include +!if "$(CPU)" == "i386" +noentry = /NOENTRY +!else +noentry = +!endif + all: main.exe the_dll.dll main.obj: main.c @@ -12,6 +18,7 @@ the_dll.rbj: the_dll.rc the_dll.bmp the_ the_dll.dll: the_dll.def the_dll.rbj $(link) \ -dll \ + $(noentry) \ -out:the_dll.dll \ -subsystem:windows \ the_dll.rbj