Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # This Source Code Form is subject to the terms of the Mozilla Public
  2. # License, v. 2.0. If a copy of the MPL was not distributed with this
  3. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  4. DEPTH = ../..
  5. CORE_DEPTH = ../..
  6. MODULE = coreconf
  7. CSRCS = \
  8. cppsetup.c \
  9. ifparser.c \
  10. include.c \
  11. main.c \
  12. parse.c \
  13. pr.c
  14. PROGRAM = mkdepend
  15. # Indicate that this directory builds build tools.
  16. INTERNAL_TOOLS = 1
  17. include $(DEPTH)/coreconf/config.mk
  18. TARGETS = $(PROGRAM)
  19. ifeq (,$(filter-out OS2 WIN%,$(OS_TARGET)))
  20. DEFINES += -DNO_X11
  21. else
  22. INSTALL = true
  23. endif
  24. ifdef NATIVE_CC
  25. CC=$(NATIVE_CC)
  26. endif
  27. ifdef NATIVE_FLAGS
  28. OS_CFLAGS=$(NATIVE_FLAGS)
  29. endif
  30. include $(DEPTH)/coreconf/rules.mk
  31. ifdef GNU_CC
  32. OPTIMIZER = -O3
  33. else
  34. ifeq ($(OS_ARCH),SunOS)
  35. OPTIMIZER = -fast
  36. endif
  37. ifeq ($(OS_ARCH),WINNT)
  38. OPTIMIZER = -Ox
  39. endif
  40. endif
  41. DEFINES += -DINCLUDEDIR=\"/usr/include\" -DOBJSUFFIX=\".$(OBJ_SUFFIX)\"
  42. # Redefine MAKE_OBJDIR for just this directory
  43. define MAKE_OBJDIR
  44. if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); fi
  45. endef