home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / wpj_mag / wpjv1n4.zip / ROD.ZIP / RODSAPP.MAK < prev    next >
Makefile  |  1993-01-27  |  1KB  |  51 lines

  1. # makefile for rodsapp application
  2.  
  3. # compile option flags
  4. # /c         compile without linking
  5. # /AM        medium model
  6. # /Gsw        s: remove stack probes
  7. #        w: generates entry/exit code for Windows
  8. # /W3        warning level 3
  9. # /Zp        pack data structures
  10. # /I        look for include files
  11. # /nologo    don't display compiler logo
  12. # /Fo        give object files the name of the current targets name
  13.  
  14. TMPDRIVE=c:\tmp
  15.  
  16. WLIB=libw mlibcew 
  17. IMPLIBS=test
  18.  
  19. OBJ=rodsapp.obj winmain.obj wndproc.obj
  20.  
  21. CFLAGS=cl /c /AM /D LINT_ARGS /Gws /W3 /Zip /Od /nologo
  22.  
  23. # Update the executable file if necessary, and if so, add the resource back in.
  24. # The /NOE must be included when linking with Windows libraries.
  25.  
  26. rodsapp.exe: $(OBJ) rodsapp.res rodsapp.def
  27.         del $(TMPDRIVE)lk.res
  28.         echo $(OBJ)>>$(TMPDRIVE)lk.res
  29.         echo rodsapp.exe/align:16>>$(TMPDRIVE)lk.res
  30.         echo rodsapp.map/map/NOD/CO/LI>>$(TMPDRIVE)lk.res
  31.         echo $(WLIB) $(IMPLIBS)>>$(TMPDRIVE)lk.res
  32.         echo rodsapp.def>>$(TMPDRIVE)lk.res
  33.         link  @$(TMPDRIVE)lk.res
  34.         rc rodsapp.res
  35.  
  36. # Update the object file if necessary
  37.  
  38. rodsapp.obj: rodsapp.c rodsapp.h
  39.         $(CC) $(CFLAGS) -NT Initialization_code rodsapp.c
  40.  
  41. winmain.obj: winmain.c rodsapp.h
  42.         $(CC) $(CFLAGS)  -NT Resident_code winmain.c
  43.  
  44. wndproc.obj: wndproc.c rodsapp.h testlib.h
  45.         $(CC) $(CFLAGS)  -NT Resident_code wndproc.c
  46.  
  47. # Update the resource if necessary
  48. rodsapp.res: rodsapp.rc rodsapp.h
  49.         rc -r rodsapp.rc
  50.  
  51.