home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / findex.zip / FINDEC.ZIP / MAKEFILE.MSC < prev   
Encoding:
Text File  |  1993-09-08  |  1.9 KB  |  64 lines

  1. #==========================================================
  2. # Makefile for FAPI EXEs under Microsoft C 6.0
  3. # Copyright (c) 1993 Douglas Boling
  4. #==========================================================
  5. #----------------------------------------------------------
  6. # Target filename
  7. #----------------------------------------------------------
  8. NAME = findexec
  9.  
  10. #----------------------------------------------------------
  11. # Define DEBUG = 1 to add debug info to EXE
  12. #----------------------------------------------------------
  13. DEBUG = 1
  14.  
  15. #----------------------------------------------------------
  16. # C compiler switches
  17. #
  18. # -c    Compile, no link
  19. # -AS   Small Mem model, 64k Code and data
  20. # -Gs     No Stack check
  21. # -Ow   Optimize. Assume no aliases
  22. # -W3   Print warnings to level 3
  23. # -Zp   Pack Structures or...
  24. # -Zpi  If Debug info needed
  25. #----------------------------------------------------------
  26. !if $(DEBUG)
  27. CSWITCH = -c -W3 -Zpi -Od
  28. !else
  29. CSWITCH = -c -AS -Gs -Ow -W3 -Zp 
  30. !endif
  31.  
  32. #----------------------------------------------------------
  33. # Link Switches
  34. #
  35. # /Align:16  Align segments on 16 byte boundries 
  36. # /CO        If debug info needed
  37. #----------------------------------------------------------
  38. !if $(DEBUG)
  39. LSWITCH = /CO /align:16
  40. !else
  41. LSWITCH = /align:16
  42. !endif
  43.  
  44. #----------------------------------------------------------
  45. # Lib files
  46. #
  47. # /nod     No defaults
  48. # llibcp   Small model lib Prot Mode
  49. # os2      OS/2 API lib
  50. #----------------------------------------------------------
  51. LIBS = /nod slibcp os2
  52.  
  53. #----------------------------------------------------------
  54. # Make EXE
  55. #----------------------------------------------------------
  56. $(NAME).exe : $(NAME).obj $(NAME).h $(NAME).def 
  57.     link $(LSWITCH) $(NAME), $(NAME).exe, NUL, $(LIBS), $(NAME)
  58.     bind $(NAME) api.lib os2.lib
  59.  
  60. $(NAME).obj : $(NAME).c $(NAME).h 
  61.     cl $(CSWITCH) $(NAME).c
  62.  
  63. 
  64.