home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / WIN_NT / GETPRO.ZIP / MAKEFILE next >
Encoding:
Text File  |  1992-10-27  |  1.2 KB  |  43 lines

  1. #**********************************************************************
  2. # Sample make file for building a console Windows 32-Bit app with a DLL
  3. #**********************************************************************
  4.  
  5. # Nmake macros for Windows 32-Bit apps
  6. !include <ntwin32.mak>
  7.  
  8. PROJ=TestDLL
  9. DLL=MinDll
  10.  
  11. all: $(PROJ).exe $(DLL).dll
  12.  
  13. # Update the object files if necessary
  14. $(PROJ).obj: $(PROJ).c $(DLL).h
  15.     $(cc) $(cdebug) $(cflags) $(cvars) $(PROJ).c
  16.  
  17. $(DLL).obj: $(DLL).c $(DLL).h
  18.     $(cc) $(cdebug) $(cflags) $(cvars) $(DLL).c
  19.  
  20. # Update the import (LIB) and export (EXP) librarys
  21. $(DLL).lib: $(DLL).obj $(DLL).def
  22.     lib               \
  23.     -machine:$(CPU)   \
  24.     -def:$(DLL).def   \
  25.     -out:$(DLL).lib
  26.  
  27. # Update the dynamic link library
  28. $(DLL).dll: $(DLL).obj $(DLL).def
  29.     $(link)              \
  30.     -base:0x1C000000     \
  31.     -dll                 \
  32.     -entry:DllEntryPoint$(DLLENTRY) \
  33.     -out:$(DLL).dll      \
  34.     $(DLL).exp $(DLL).obj crtdll.lib $(guilibs)
  35.  
  36. # Update the executable file if necessary.
  37. $(PROJ).exe: $(PROJ).obj $(DLL).lib
  38.     $(cvtobj) *.obj
  39.     $(link) $(linkdebug) $(conflags)    \
  40.       -out:$(PROJ).exe                  \
  41.       $(PROJ).obj $(DLL).lib            \
  42.       $(conlibs)
  43.