home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 v2.4 Fix / W95-v2.4fix.iso / ACADWIN / ADS / SAMPLE / WINADS.MAK < prev   
Encoding:
Makefile  |  1995-02-08  |  1.9 KB  |  48 lines

  1. # --------------------------------------------------------------------
  2. # (C) Copyright 1990-1994 by Autodesk, Inc.
  3. # Permission to use, copy, modify, and distribute this software and its
  4. # documentation for any purpose and without fee is hereby granted.   
  5. # THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. 
  6. # ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF 
  7. # MERCHANTABILITY ARE HEREBY DISCLAIMED.                                 
  8. # --------------------------------------------------------------------
  9. #
  10. #        ADS make file for MSVC++ 1.1 32-bit edition
  11. #
  12. # This make file uses the MSVC++ 1.1 32-bit compiler to build a 
  13. # Windows ADS executable. You must use the WINADS.BAT file to set up the 
  14. # initial DOS environment and launch nmake using this make file.
  15. #
  16. # This make file was created from an MSVC++ IDE project file (which is
  17. # already a make file with extra stuff in it). All I did was strip out
  18. # unnecessary macros and replace the actual source file name with $(INFILE)
  19. # which is an environment variable set by the WINADS.BAT file to the
  20. # value of the desired source file name.
  21.  
  22.  
  23.  
  24. #These commented out lines are for building with debug on
  25. #
  26. #CFLAGS = /Zp1 /W3 /Zi /YX /D WIN=1 /D ADS=1 /D _DEBUG /D _X86_ /D WIN32
  27.  
  28. #LFLAGS = /NOLOGO /DEBUG:full /DEBUGTYPE:cv /SUBSYSTEM:windows \
  29. # user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib olecli32.lib \
  30. # olesvr32.lib shell32.lib
  31.  
  32. CFLAGS = /Zp1 /W3 /YX /Ox /D WIN=1 /D ADS=1 /D _X86_=1 /D WIN32
  33.  
  34. LFLAGS = /NOLOGO /SUBSYSTEM:windows user32.lib gdi32.lib winspool.lib \
  35.  comdlg32.lib advapi32.lib olecli32.lib olesvr32.lib shell32.lib
  36.  
  37. #$(INFILE).EXE:    $(INFILE).OBJ $(INFILE).DEF WINADS.LIB 
  38. $(INFILE).EXE:    $(INFILE).OBJ $(INFILE).DEF
  39.     echo >NUL @<<$(INFILE).CRF
  40. $(INFILE).OBJ 
  41. -OUT:$(INFILE).EXE
  42. WINADS.LIB
  43. <<
  44.     link $(LFLAGS) @$(INFILE).CRF 
  45.  
  46. $(INFILE).OBJ:    $(INFILE).C adslib.h ads.h adsdef.h adscodes.h
  47.     cl $(CFLAGS) /c $(INFILE).C
  48.