home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / deltree2.zip / MAKEFILE.BCC < prev    next >
Text File  |  1993-11-07  |  1KB  |  59 lines

  1. #=============================================================
  2. #
  3. #    Makefile.BCC - Makefile for DELTREE[2]
  4. #       Requires LIB environment variable to point to BCC libraries
  5. #
  6. #=============================================================
  7.  
  8. .AUTODEPEND
  9.  
  10. LFLAGS= /L$(LIB) /x
  11.  
  12. !if $d(__OS2__)
  13. # OS/2 version
  14. MODEL= 2
  15. LIBS= c2.lib os2.lib
  16. LFLAGS= $(LFLAGS) /S:4000 /Toe /ap
  17. !if $d(DBG)
  18. # OS/2 version with debugging
  19. TARGET= deltre2d.exe
  20. CFLAGS= -Od -y -v -N -DDBG
  21. LFLAGS= $(LFLAGS) /v
  22. !else
  23. # OS/2 version no debugging
  24. TARGET= deltree2.exe
  25. CFLAGS= -O2 -N
  26. !endif
  27. !else
  28. # MSDOS version
  29. LIBS= cs maths emu
  30. !if $d(DBG)
  31. # MSDOS version with debugging
  32. MODEL= s
  33. TARGET= deltreed.exe
  34. CFLAGS= -m$(MODEL) -Od -y -v -N -DSTKLEN=4096U -DDBG
  35. !else
  36. # MSDOS version no debugging (tiny model)
  37. MODEL= t
  38. TARGET= deltree.com
  39. CFLAGS= -m$(MODEL) -O2 -N
  40. LFLAGS= $(LFLAGS) /t
  41. !endif
  42. !endif
  43.  
  44. # Now build compiler and linker invocations
  45. CC= bcc -c $(CFLAGS)
  46. LINK= tlink $(LFLAGS)
  47.  
  48. # Guts of the makefile!
  49. $(TARGET): deltree.c
  50.   $(CC) deltree.c
  51.   $(LINK) @&&|
  52. $(LIB)\c0$(MODEL) deltree
  53. $&,$&
  54. $(LIBS)
  55.  
  56. |
  57.  
  58.   del  deltree.obj
  59.