home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 2.ddi / TVDEMOS.ZIP / GENFORMS.MAK < prev    next >
Encoding:
Makefile  |  1992-06-10  |  1.3 KB  |  65 lines

  1. #
  2. #   Turbo Vision 1.0                                  
  3. #   Turbo Vision Forms Demo                           
  4. #   Copyright (c) 1991 by Borland International       
  5.  
  6. #   This makefile generates two forms data files,     
  7. #   PHONENUM.TVF and PARTS.TVF. These can be loaded   
  8. #   and edited using TVFORMS.CPP.                     
  9.  
  10. #
  11. # Configuration:
  12. #
  13. #   If you have Borland C++ and not Turbo C++, you must use a define on
  14. #   the make command line:
  15. #
  16. #       -DBC         indicates that you have Borland C++
  17. #
  18. #   Examples:
  19. #
  20. #       using Turbo C++:
  21. #
  22. #           make -fgenforms
  23. #
  24. #       using Borland C++:
  25. #
  26. #           make -DBC -fgenforms
  27. #
  28.  
  29. .autodepend
  30. .swap
  31.  
  32. !if $d(BC)
  33. CC      = bcc
  34. !else
  35. CC      = tcc
  36. !endif
  37.  
  38. INCLUDE = ..\include;..\..\include
  39. LIB     = ..\..\lib
  40. MODEL   = l
  41. TVLIB   = ..\lib\tv.lib
  42. SRC     = genform.cpp
  43. OBJS    = forms.obj datacoll.obj fields.obj listdlg.obj
  44.  
  45. .cpp.obj:
  46.    $(CC) -c -m$(MODEL) -I$(INCLUDE) {$< }
  47.  
  48. all: phonenum.tvf parts.tvf
  49.  
  50. phonenum.tvf: $(SRC) $(OBJS) $(TVLIB)
  51.    $(CC) -DPHONENUM -m$(MODEL) -I$(INCLUDE) -L$(LIB) @&&| 
  52. $(SRC)
  53. $(OBJS)
  54. $(TVLIB)
  55. |
  56.    genform
  57.  
  58. parts.tvf: $(SRC) $(OBJS) $(TVLIB)
  59.    $(CC) -DPARTS -m$(MODEL) -I$(INCLUDE) -L$(LIB) @&&| 
  60. $(SRC)
  61. $(OBJS)
  62. $(TVLIB)
  63. |
  64.    genform
  65.