|
|
1.1 ! root 1: # Nmake macros for building Windows 32-Bit apps ! 2: ! 3: !include <ntwin32.mak> ! 4: ! 5: # This line allows NMAKE to work as well ! 6: ! 7: all: linktest.exe loadtest.exe the_dll.dll ! 8: ! 9: # Update the object files if necessary ! 10: ! 11: linktest.obj: linktest.c ! 12: $(cc) $(cflags) $(cvars) linktest.c ! 13: ! 14: loadtest.obj: loadtest.c ! 15: $(cc) $(cflags) $(cvars) loadtest.c ! 16: ! 17: the_dll.obj: the_dll.c ! 18: $(cc) $(cflags) $(cvars) the_dll.c ! 19: ! 20: # Update the resources if necessary ! 21: ! 22: linktest.res: linktest.rc linktest.h ! 23: rc -r -fo linktest.tmp linktest.rc ! 24: cvtres -$(CPU) linktest.tmp -o linktest.res ! 25: del linktest.tmp ! 26: ! 27: loadtest.res: loadtest.rc loadtest.h ! 28: rc -r -fo loadtest.tmp loadtest.rc ! 29: cvtres -$(CPU) loadtest.tmp -o loadtest.res ! 30: del loadtest.tmp ! 31: ! 32: the_dll.res: the_dll.rc ! 33: rc -r -fo the_dll.tmp the_dll.rc ! 34: cvtres -$(CPU) the_dll.tmp -o the_dll.res ! 35: del the_dll.tmp ! 36: ! 37: # Update the import library ! 38: ! 39: the_dll.lib: the_dll.obj the_dll.def ! 40: lib -machine:$(CPU) \ ! 41: -def:the_dll.def \ ! 42: -out:the_dll.lib ! 43: ! 44: # Update the dynamic link library ! 45: ! 46: the_dll.dll: the_dll.obj the_dll.def the_dll.res ! 47: $(link) \ ! 48: -base:0x1C000000 \ ! 49: -dll \ ! 50: -entry:DLLEntryPoint \ ! 51: -out:the_dll.dll \ ! 52: the_dll.res the_dll.exp the_dll.obj $(guilibs) ! 53: ! 54: ! 55: # Update the executable file if necessary. ! 56: # If so, add the resource back in. ! 57: ! 58: linktest.exe: linktest.obj the_dll.lib linktest.res linktest.def ! 59: $(link) $(guiflags) -out:linktest.exe linktest.obj the_dll.lib linktest.res $(guilibs) ! 60: ! 61: loadtest.exe: loadtest.obj loadtest.res loadtest.def ! 62: $(link) $(guiflags) -out:loadtest.exe loadtest.obj loadtest.res $(guilibs)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.