--- q_a/samples/simpldll/makefile 2018/08/09 18:29:26 1.1.1.2 +++ q_a/samples/simpldll/makefile 2018/08/09 18:29:48 1.1.1.3 @@ -5,13 +5,13 @@ all: linktest.exe loadtest.exe the_dll.d linktest.obj: linktest.c - $(cc) $(cdebug) $(cflags) $(cvars) linktest.c + $(cc) $(cdebug) $(cflags) $(cvarsdll) linktest.c loadtest.obj: loadtest.c - $(cc) $(cdebug) $(cflags) $(cvars) loadtest.c + $(cc) $(cdebug) $(cflags) $(cvarsdll) loadtest.c the_dll.obj: the_dll.c - $(cc) $(cdebug) $(cflags) $(cvars) the_dll.c + $(cc) $(cdebug) $(cflags) $(cvarsdll) the_dll.c linktest.rbj: linktest.rc linktest.h @@ -28,27 +28,22 @@ the_dll.rbj: the_dll.rc the_dll.lib: the_dll.obj the_dll.def - lib -machine:$(CPU) \ + $(implib) -machine:$(CPU) \ -def:the_dll.def \ -!IF "$(CPU)" == "i386" the_dll.obj \ -!ENDIF -out:the_dll.lib \ the_dll.dll: the_dll.obj the_dll.def the_dll.rbj $(link) $(linkdebug) \ -base:0x1C000000 \ -dll \ - -entry:DLLEntryPoint$(DLLENTRY) \ + -entry:_DllMainCRTStartup$(DLLENTRY) \ -out:the_dll.dll \ - the_dll.rbj the_dll.exp the_dll.obj $(guilibs) + the_dll.rbj the_dll.exp the_dll.obj $(guilibsdll) linktest.exe: linktest.obj the_dll.lib linktest.rbj linktest.def - $(cvtobj) $(cvtdebug) *.obj - $(link) $(linkdebug) $(guiflags) -out:linktest.exe linktest.obj the_dll.lib linktest.rbj $(guilibs) + $(link) $(linkdebug) $(guiflags) -out:linktest.exe linktest.obj the_dll.lib linktest.rbj $(guilibsdll) loadtest.exe: loadtest.obj loadtest.rbj loadtest.def - $(cvtobj) $(cvtdebug) *.obj - $(link) $(linkdebug) $(guiflags) -out:loadtest.exe loadtest.obj loadtest.rbj $(guilibs) - + $(link) $(linkdebug) $(guiflags) -out:loadtest.exe loadtest.obj loadtest.rbj $(guilibsdll)