Makefile.in 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. # This program is free software; you can redistribute it and/or modify
  2. # it under the terms of the GNU General Public License as published by
  3. # the Free Software Foundation; either version 2, or (at your option)
  4. # any later version.
  5. # This program is distributed in the hope that it will be useful,
  6. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. # GNU General Public License for more details.
  9. # You should have received a copy of the GNU General Public License
  10. # along with this program; if not, write to the Free Software
  11. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  12. SHELL = /bin/sh
  13. top_srcdir = @top_srcdir@
  14. srcdir = @srcdir@
  15. VPATH = @srcdir@
  16. .SUFFIXES:
  17. .SUFFIXES: .c .o
  18. OPT=-g -O
  19. AR = ar
  20. AR_FLAGS = rc
  21. RANLIB = @RANLIB@
  22. CC = @CC@
  23. DEFS = @DEFS@ -DXPMPATH="\"$(sharedir)/xgdip.xpm\""
  24. CFLAGS = -I. @CFLAGS@
  25. LDFLAGS = @LDFLAGS@
  26. LIBS = @LIBS@ -L$(srcdir)/libextreme -lextreme
  27. INSTALL = @INSTALL@
  28. prefix = @prefix@
  29. exec_prefix = @exec_prefix@
  30. bindir = $(exec_prefix)/bin
  31. libdir = $(prefix)/lib
  32. infodir = $(prefix)/info
  33. sharedir = $(prefix)/share/xgdipc
  34. SOURCES=xgdipc.c connect_to.c menus.c md5c.c
  35. MISC=configure mkinstalldirs install-sh aclocal.m4
  36. OBJS=md5c.o xgdipc.o connect_to.o menus.o
  37. SUBDIRS = libextreme
  38. %.o:%.c $(HEADERS)
  39. $(CC) $(CFLAGS) $(DEFS) -c $<
  40. all: all-recursive xgdipc
  41. all-recursive:
  42. for i in $(SUBDIRS); do ( cd $$i ; $(MAKE) ); done
  43. # might not need all of these. also, I assumed the names PROG and
  44. # libMYPROG.a for the program and library.
  45. install: all
  46. $(top_srcdir)/mkinstalldirs $(bindir)
  47. $(INSTALL) xgdipc $(bindir)/xgdipc
  48. $(top_srcdir)/mkinstalldirs $(sharedir)
  49. $(INSTALL) xgdip.xpm $(sharedir)/xgdip.xpm
  50. uninstall:
  51. /bin/rm -f $(bindir)/xgdipc
  52. xgdipc: $(OBJS)
  53. $(CC) $(CFLAGS) -o xgdipc $(OBJS) $(LIBS)
  54. clean: clean-recursive
  55. /bin/rm -f core *.o $(OBJS) $(LIB_OBJS) xgdipc
  56. clean-recursive:
  57. for i in $(SUBDIRS); do ( cd $$i ; $(MAKE) clean ); done
  58. distclean: clean
  59. /bin/rm -f Makefile config.h config.status config.cache config.log
  60. mostlyclean: clean
  61. maintainer-clean: clean
  62. # automatic re-running of configure if the ocnfigure.in file has changed
  63. ${srcdir}/configure: configure.in
  64. cd ${srcdir} && autoconf
  65. # autoheader might not change config.h.in, so touch a stamp file
  66. ${srcdir}/config.h.in: stamp-h.in
  67. ${srcdir}/stamp-h.in: configure.in
  68. cd ${srcdir} && autoheader
  69. echo timestamp > ${srcdir}/stamp-h.in
  70. config.h: stamp-h
  71. stamp-h: config.h.in config.status
  72. ./config.status
  73. Makefile: Makefile.in config.status
  74. ./config.status
  75. config.status: configure
  76. ./config.status --recheck