Imakefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. XCOMM $tog: Imakefile /main/27 1997/04/30 15:38:09 kaleb $
  2. SRCS = include.c main.c parse.c pr.c cppsetup.c ifparser.c
  3. OBJS = include.o main.o parse.o pr.o cppsetup.o ifparser.o
  4. XCOMM Some compilers generate fatal errors if an -L directory does
  5. XCOMM not exist. Since BUILDLIBDIR may not exist yet suppress its use.
  6. LDPRELIB =
  7. LDPRELIBS =
  8. #if HasGcc && !defined(PreIncDir)
  9. #define PreIncDir /usr/local/lib/gcc-include
  10. #endif
  11. #ifdef PreIncDir
  12. PREINCDIR = PreIncDir
  13. PREINC_DEFINES = -DPREINCDIR=\"$(PREINCDIR)\"
  14. #endif
  15. #ifndef StdIncDir
  16. #define StdIncDir /usr/include
  17. #endif
  18. STDINCDIR = StdIncDir
  19. STDINC_DEFINES = -DINCLUDEDIR=\"$(STDINCDIR)\"
  20. #ifdef PostIncDir
  21. POSTINCDIR = PostIncDir
  22. POSTINC_DEFINES = -DPOSTINCDIR=\"$(POSTINCDIR)\"
  23. #endif
  24. INC_DEFINES = $(PREINC_DEFINES) $(STDINC_DEFINES) $(POSTINC_DEFINES)
  25. OSUF = .Osuf
  26. OSUF_DEFINES = -DOBJSUFFIX=\"$(OSUF)\"
  27. MAIN_DEFINES = $(INC_DEFINES) $(SIGNAL_DEFINES) $(OSUF_DEFINES)
  28. DEPEND_DEFINES = $(DEPENDDEFINES)
  29. INCLUDES = -I$(IMAKESRC) -I$(TOP)/include $(TOP_X_INCLUDES)/X11
  30. DEPLIBS =
  31. #if defined(MacIIArchitecture) || defined(SequentArchitecture)
  32. XBSDLIB = /**/
  33. #endif
  34. AllTarget(ProgramTargetName(makedepend))
  35. /*
  36. * bootstrapping: want to build the real makedepend
  37. * only after we've run "make depend" here. That way
  38. * the program has the right dependencies for clearmake.
  39. * Save the bootstrap original files so they can be winked in
  40. * to other views.
  41. */
  42. #if HasClearmake
  43. bootstrap:
  44. test -h X11 || $(LN) TOPDIR/include X11
  45. $(MAKE) -f Makefile.proto TOP_INCLUDES=-I. makedepend
  46. depend::
  47. $(MAKE) -f Makefile.proto depend
  48. test -d bootstrap || mkdir bootstrap
  49. $(MV) *.o makedepend bootstrap
  50. $(MAKE) -f Makefile.proto makedepend
  51. clean::
  52. $(RM) -r bootstrap
  53. $(RM) X11
  54. #else
  55. bootstrap:
  56. #endif /* HasClearmake */
  57. clean::
  58. $(RM) Makefile.proto
  59. #undef InstallManPage
  60. #define InstallManPage(file,dest) /* as nothing */
  61. #if CrossCompiling
  62. ComplexHostProgramTarget(makedepend)
  63. #else
  64. ComplexProgramTarget(makedepend)
  65. #endif
  66. SpecialCObjectRule(main,$(ICONFIGFILES),$(MAIN_DEFINES))
  67. InstallManPageLong(mkdepend,$(MANDIR),makedepend)