You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
923 B

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #!/usr/bin/make
  2. #
  3. # Copyright (c) 2003 by Salvador E. Tropea
  4. # Covered by the GPL license.
  5. #
  6. # This file contains the definitions that configures the compilation.
  7. # They include the C and C++ options and linker options.
  8. # I used BC++ 5.5 free command line tools for testing.
  9. #
  10. !ifdef DEBUG
  11. CDEBUGFLAGS = -v -vi -y -6 -Od
  12. !else
  13. CDEBUGFLAGS = -O2 -6 -T -DNDEBUG
  14. !endif
  15. !ifdef DYNRTL
  16. DYNRTLDFLAGS = -WR
  17. !endif
  18. CFLAGS = -w-aus -w-ccc -a8 $(DYNRTLDFLAGS) -WC -X -q $(CDEBUGFLAGS)
  19. # Note: rch == Unreachable code. BC++ 5.5 is idiot to detect code that is
  20. # disabled on purpose. i.e. if (0) ...
  21. CXXFLAGS = -P -RT- -w-hid -w-par -w-rch $(CFLAGS)
  22. LDFLAGS = $(DYNRTLDFLAGS) -WC
  23. RHIDE_GCC=bcc32
  24. RHIDE_GXX=bcc32
  25. RHIDE_LD=bcc32
  26. # Sets the variables for the sub-makes
  27. EXTRALIB_MAKE_ARGS=_SUBMAKE=1 CC="$(RHIDE_GCC)" LD="$(RHIDE_LD)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" -f Makefile.bcc
  28. MK_EXT=.bcc
  29. MKF_EXT=.bmk