home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Enlightenment / enl14.tgz / enl14.tar / enl14 / Makefile.in < prev    next >
Makefile  |  1997-11-19  |  6KB  |  199 lines

  1. # ENLIGHTENMENT Makefile template for GNU autoconf
  2. # GPL (C) 1997 The Rasterman, Mandrake
  3. #   raster@rasterman.com mandrake@mandrake.net
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. # the resultant executable
  20. exe         = tst
  21.  
  22. @SET_MAKE@
  23.  
  24. SHELL       = /bin/sh
  25. VPATH       = @srcdir@
  26. INSTALL     = @INSTALL@
  27. INSTALLBIN  = $(INSTALL) -m 755
  28. INSTALLLIB  = $(INSTALL) -m 644
  29.  
  30.  
  31. .SUFFIXES:
  32. .SUFFIXES: .c .o
  33.  
  34. OPT         = -g -Wall -pedantic
  35. CC          = @CC@
  36.  
  37. top_srcdir = @top_srcdir@
  38. srcdir     = @srcdir@
  39. prefix      = @prefix@
  40. exec_prefix = @exec_prefix@
  41. bindir      = $(exec_prefix)/bin
  42. datadir     = @datadir@
  43. incdir      = @includedir@
  44. libdir      = @libdir@
  45. exe2dir     = @libexecdir@
  46. mandir      = @mandir@
  47.  
  48. SOURCES     = \
  49. actions.c     \
  50. alert.c       \
  51. buttons.c     \
  52. events.c      \
  53. file.c        \
  54. globals.c     \
  55. handlers.c    \
  56. imageclass.c  \
  57. lists.c       \
  58. loadcfg.c     \
  59. main.c        \
  60. menus.c       \
  61. misc.c        \
  62. root.c        \
  63. setup.c       \
  64. sliders.c
  65.  
  66. OBJS        = \
  67. actions.o     \
  68. alert.o       \
  69. buttons.o     \
  70. events.o      \
  71. file.o        \
  72. globals.o     \
  73. handlers.o    \
  74. imageclass.o  \
  75. lists.o       \
  76. loadcfg.o     \
  77. main.o        \
  78. menus.o       \
  79. misc.o        \
  80. root.o        \
  81. setup.o       \
  82. sliders.o
  83.  
  84. MISC        = \
  85. configure 
  86.  
  87. LIB         = \
  88. -lm           \
  89. -ljpeg        \
  90. -lpng         \
  91. -lz
  92.  
  93. XLIB        = \
  94. -lX11         \
  95. -lXext        \
  96. -lXtst        \
  97. -lIm
  98.  
  99. LIBS        =  \
  100. @LIBS@         \
  101. @X_LIBS@       \
  102. @X_EXTRA_LIBS@ \
  103. $(LIB)         \
  104. $(XLIB)
  105.  
  106. CFLAGS      = \
  107. @CFLAGS@      \
  108. @X_CFLAGS@    \
  109. $(OPT)
  110.  
  111. all: $(exe)
  112.  
  113. install: all
  114.     $(top_srcdir)/mkinstalldirs $(bindir)
  115.     $(INSTALL) $(exe) $(bindir)/$(exe)
  116.     @echo "--------------------------------------------------------------------------------"
  117.     @echo "Enlightenment installed. Please check the above output just to be"
  118.     @echo "sure it installed in the correct location, and for your own reference"
  119.     @echo "remember where it went, so you can simply uninstall enlightenment"
  120.     @echo "by deleting everything in the enlightenment directory, the directory"
  121.     @echo "itself, and all symlinks that point into this directory."
  122.     @echo "--------------------------------------------------------------------------------"
  123.     @echo "Now, if you want Enlightenment to be used as your Window Manager"
  124.     @echo "next time you log into X, edit either your .xsession or .xinitrc"
  125.     @echo "files (.xsession if you use XDM, .xinitrc if you use startx)"
  126.     @echo "and either replace the previous line that runs a Window Manager"
  127.     @echo "(eg. fvwm, twm, fvwm95, afterstep, windowmaker etc.) with a line"
  128.     @echo "that runs enlightenment (eg /usr/local/enlightenment/bin/enlightenment)"
  129.     @echo "If you do not have one of these files, just create a new one with"
  130.     @echo "the only line in it being as described above. Also to be sure it"
  131.     @echo "will work, make sure this file is executable. You can do this by"
  132.     @echo "the following command:"
  133.     @echo "  chmod u+x .xsession"
  134.     @echo "or"
  135.     @echo "  chmod u+x .xinitrc"
  136.     @echo "or whatever is relevant to your situation."
  137.     @echo "--------------------------------------------------------------------------------"    
  138.     @echo "NOTE NOTE NOTE : Hey Mandrake.. the above is my meaningless drivel"
  139.     @echo "so ignore it. How about we make enlightenment detect if a WM is running"
  140.     @echo "and examine your .xsession/.xinitrc and modify them for you if need"
  141.     @echo "be, then shut down the other wm (XkillClient?)"
  142.     
  143. uninstall:
  144.     /bin/rm -f $(bindir)/$(exe)
  145.  
  146. .c.o:
  147.     $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
  148.  
  149. $(exe): $(OBJS) 
  150.     $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
  151.     @echo "--------------------------------------------------------------------------------"
  152.     @echo "Enlightenment compiled."
  153.     @echo ""
  154.     @echo "If there were warnings above, please check the code where those warnings"
  155.     @echo "occured, and if possible fix them, and send a patch in to either:"
  156.     @echo "   raster@rasterman.com  or  mandrake@mandrake.net"
  157.     @echo "but please hurry, because waiting too long after a release may mean"
  158.     @echo "that the patch will not patch cleanly. In this event we will either"
  159.     @echo "give up, or attempt to patch by hand. We may ask you for more information"
  160.     @echo "also if this is difficult."
  161.     @echo "--------------------------------------------------------------------------------"
  162.     @echo "If you didn't type:"
  163.     @echo "  make install"
  164.     @echo "type that now if you want Enlightenment installed in the correct"
  165.     @echo "place on your system."
  166.     @echo "--------------------------------------------------------------------------------"
  167.  
  168. clean:
  169.     /bin/rm -f core *.o $(OBJS) $(exe)
  170.  
  171. distclean: clean
  172.     /bin/rm -f Makefile config.h config.status config.cache config.log *~
  173.  
  174. dist: distclean
  175.     /bin/sh -c "cd .. ; tar zcvf enl14.tgz enl14"
  176.     
  177. mostlyclean: clean
  178.  
  179. maintainer-clean: clean
  180.  
  181. # automatic re-running of configure if the ocnfigure.in file has changed
  182. ${srcdir}/configure: configure.in 
  183.     cd ${srcdir} && autoconf
  184.  
  185. # autoheader might not change config.h.in, so touch a stamp file
  186. ${srcdir}/config.h.in: stamp-h.in
  187. ${srcdir}/stamp-h.in: configure.in 
  188.     cd ${srcdir} && autoheader
  189.     echo timestamp > ${srcdir}/stamp-h.in
  190.  
  191. config.h: stamp-h
  192. stamp-h: config.h.in config.status
  193.     ./config.status
  194. Makefile: Makefile.in config.status
  195.     ./config.status
  196. config.status: configure
  197.     ./config.status --recheck
  198.  
  199.