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.

64 lines
1.6 KiB

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #!/usr/bin/make
  2. #
  3. # Copyright (c) 2003 by Salvador E. Tropea.
  4. # Covered by the GPL license.
  5. #
  6. # For Borland C++.
  7. # This file contains the definitions needed to compile and link the rules
  8. # found in .umk files.
  9. # The definitions are used by all the makefiles.
  10. #
  11. #
  12. # That configure the compilation and linking options.
  13. # Is equivalent to rhide.env.
  14. #
  15. !ifdef CONFIG_PATH
  16. # To avoid usig -I....
  17. !include $(CONFIG_PATH)/config.bcc
  18. !else
  19. !include config.bcc
  20. !endif
  21. .path.cc=$(SRCDIRS)
  22. .path.c=$(SRCDIRS);.
  23. .path.s=$(SRCDIRS)
  24. # Turn off the implicit rule to generate .obj files from .c files.
  25. # If we don't do it make will use both rules.
  26. .c.obj:
  27. # These files changes the compilation process so they are important
  28. # dependencies.
  29. #MAKEFILE_DEPS=blink.exe Interferes with compile rule.
  30. MAKEFILE_DEPS=
  31. # Extensions used by Borland tools
  32. ExOBJ=.obj
  33. ExEXE=.exe
  34. ExLIB=.lib
  35. RHIDE_AR=blink
  36. RHIDE_ARFLAGS=
  37. RHIDE_COMPILE_LINK=$(RHIDE_LD) $(LDFLAGS) -e$(OUTFILE) $(OBJFILES) \
  38. $(LIBRARIES) $(RHIDE_LIBDIRS) $(RHIDE_LIBS)
  39. RHIDE_COMPILE_C=$(RHIDE_GCC) -c $(CFLAGS) $(INCLUDE_DIRS) -o$(OUTFILE) \
  40. $(SOURCE_NAME)
  41. RHIDE_COMPILE_CC=$(RHIDE_GXX) -c $(CXXFLAGS) $(INCLUDE_DIRS) -o$(OUTFILE) \
  42. $(SOURCE_NAME)
  43. RHIDE_COMPILE_ARCHIVE=$(RHIDE_AR) $(RHIDE_ARFLAGS) $(OUTFILE) obj
  44. # This is fake, the .S files are used only for DJGPP and they are protected
  45. # by preprocessor constructions. For this reason they can be used as C sources
  46. # to generate dummy .obj files.
  47. RHIDE_COMPILE_ASM_FORCE=$(RHIDE_GCC) -c $(CFLAGS) $(INCLUDE_DIRS) -o$(OUTFILE) \
  48. $(SOURCE_NAME)
  49. SOURCE_NAME=$**
  50. OUTFILE=$@
  51. ALL_PREREQ=$**
  52. #LIB_DIRS=$(RHIDE_OS_LIBS_PATH) -L.
  53. blink.exe:: blink.c
  54. $(RHIDE_GCC) -e$(OUTFILE) $(ALL_PREREQ)