home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 April B / Pcwk4b98.iso / Borland / Dbase50w / EXTERN.PAK / DBEXTERN.MAK < prev    next >
Text File  |  1994-08-02  |  1KB  |  58 lines

  1. #
  2. # dbextern.mak
  3. #
  4. # Part of dbextern, a DBase for Windows example.
  5. #
  6. # makefile to build dbextern.dll
  7. #
  8. # wants CHOME or MAKEDIR to be defined.
  9. #
  10. # make -B -fdbextern.mak            builds dbextern.dll with debug info.
  11. # make -B -DNDEBUG -fdbextern.mak   builds dbextern.dll without debug info.
  12. #
  13. # Dbextern.cpp uses some exception handling.  If you want to use
  14. # no exception handling, define NO_EXCEPTIONS:
  15. # make -B -fdbextern.mak -DNO_EXCEPTIONS
  16. #
  17. # This DLL HAS to run in large model.
  18. #
  19.  
  20. !if !$d(CHOME) && !$d(MAKEDIR) 
  21.    !error Need to set CHOME or MAKEDIR.
  22. !endif
  23.  
  24. !if $d(NO_EXCEPTIONS)
  25. EH=-DNO_EXCEPTIONS
  26. !else
  27. EH=
  28. !endif
  29.  
  30. !if $d(CHOME)
  31. ROOT=$(CHOME)
  32. !else
  33. ROOT=$(MAKEDIR)\..
  34. !endif
  35.  
  36. !ifdef NDEBUG
  37. CCDEBUG=
  38. LINKDEBUG=
  39. !else
  40. CCDEBUG=-v
  41. LINKDEBUG=/v
  42. !endif
  43.  
  44. BCLIB=$(ROOT)\lib
  45. BCINCLUDE=$(ROOT)\include;..\..\include
  46.  
  47. CC=BCC -WD -ml -c -M -I$(BCINCLUDE) $(CCDEBUG) $(EH)
  48. LINK=tlink /L$(BCLIB) /Twd /n /m $(LINKDEBUG) $(BCLIB)\c0dl.obj
  49.  
  50. .cpp.obj:
  51.    $(CC) $(@R).cpp
  52.  
  53. dbextern.dll: dbextern.obj
  54.    $(LINK) dbextern, dbextern,, import mathwl cwl, dbextern.def
  55.  
  56. dbextern.obj: dbextern.cpp dbasevar.h
  57.  
  58.