Makefile.in 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # Copyright (C) 1992, 1993 Lucid, Inc.
  2. # Copyright (C) 1994, 2001-2012 Free Software Foundation, Inc.
  3. #
  4. # This file is part of the Lucid Widget Library.
  5. #
  6. # The Lucid Widget Library is free software; you can redistribute it and/or
  7. # modify it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 1, or (at your option)
  9. # any later version.
  10. #
  11. # The Lucid Widget Library is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with GNU Emacs; see the file COPYING. If not, write to
  18. # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  19. # Boston, MA 02110-1301, USA.
  20. # This was taken from the output of Imake using Lucid's Imakefile.
  21. # and set up to be configured by ../configure.
  22. srcdir=@srcdir@
  23. VPATH=@srcdir@
  24. @SET_MAKE@
  25. C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
  26. C_SWITCH_X_SYSTEM=@C_SWITCH_X_SYSTEM@
  27. C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
  28. C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
  29. C_WARNINGS_SWITCH = @C_WARNINGS_SWITCH@
  30. PROFILING_CFLAGS = @PROFILING_CFLAGS@
  31. CC=@CC@
  32. CFLAGS=@CFLAGS@
  33. CPPFLAGS=@CPPFLAGS@
  34. RANLIB=@RANLIB@
  35. AR = ar cq
  36. LUCID_OBJS = lwlib-Xlw.o xlwmenu.o lwlib-Xaw.o
  37. MOTIF_OBJS = lwlib-Xm.o
  38. ## LUCID_OBJS or MOTIF_OBJS.
  39. TOOLKIT_OBJS = $(@X_TOOLKIT_TYPE@_OBJS)
  40. OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o
  41. ## ../src is where the generated file (config.h, globals.h) are.
  42. ## $(srcdir)/../src is where the non-generated files (lisp.h) are.
  43. ## (In an out-of-tree build, these two are not the same.)
  44. ## $(srcdir) is where the lwlib sources are.
  45. ## There are no generated lwlib files, hence no need for -I.
  46. ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
  47. $(C_SWITCH_X_SYSTEM) $(C_SWITCH_MACHINE) \
  48. $(C_WARNINGS_SWITCH) $(PROFILING_CFLAGS) $(CFLAGS) \
  49. -DHAVE_CONFIG_H -Demacs -I../src \
  50. -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
  51. .c.o:
  52. $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
  53. all:: liblw.a
  54. liblw.a: $(OBJS)
  55. rm -f $@
  56. $(AR) $@ $(OBJS)
  57. $(RANLIB) $@
  58. ## Generated files in ../src, non-generated in $(srcdir)/../src.
  59. config_h = ../src/config.h
  60. lisp_h = $(srcdir)/../src/lisp.h
  61. ## lisp.h includes this.
  62. globals_h = ../src/globals.h
  63. src_h = $(config_h) $(lisp_h) $(globals_h)
  64. $(globals_h):
  65. cd ../src && $(MAKE) $(MFLAGS) globals.h
  66. lwlib-utils.o: $(src_h) lwlib-utils.c lwlib-utils.h lwlib.h
  67. lwlib.o: $(src_h) lwlib.c lwlib.h lwlib-int.h lwlib-utils.h \
  68. lwlib-Xlw.h lwlib-Xm.h lwlib-Xaw.h
  69. lwlib-Xlw.o: $(src_h) lwlib-Xlw.c lwlib.h lwlib-int.h lwlib-Xlw.h xlwmenu.h
  70. lwlib-Xaw.o: $(src_h) lwlib-Xaw.c lwlib-Xaw.h lwlib.h lwlib-int.h
  71. lwlib-Xm.o: $(src_h) lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h
  72. xlwmenu.o: $(src_h) xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h \
  73. $(srcdir)/../src/xterm.h
  74. mostlyclean:
  75. rm -f *.o liblw.a \#*
  76. clean: mostlyclean
  77. distclean: clean
  78. rm -f Makefile
  79. maintainer-clean: distclean
  80. rm -f TAGS
  81. TAGS:
  82. ../lib-src/etags $(srcdir)/*.[ch]
  83. tags: TAGS
  84. .PHONY: tags