home *** CD-ROM | disk | FTP | other *** search
/ ftp.madoka.org / 2014.12.ftp.madoka.org.tar / ftp.madoka.org / pub / irchat-pj / irchat-pj-2.4.24.22.tar.gz / irchat-pj-2.4.24.22.tar / irchat-pj-2.4.24.22 / Makefile < prev    next >
Makefile  |  2002-07-18  |  2KB  |  85 lines

  1. #
  2. # Makefile for irchat-pj
  3. #
  4. # $Id: Makefile,v 1.7 1994/02/23 15:05:00 tmo Exp $
  5. # last modified by simm@irc.fan.gr.jp, Fri, 17 Dec 1999 23:39:58 +0900
  6. #
  7.  
  8. #
  9. # If you don't have jwz's optimizing byte-compiler, uncomment the following
  10. # lines.  A better idea would be to get it from archive.cis.ohio-state.edu
  11. # in the file pub/gnu/emacs/elisp-archive/packages/bytecomp.tar.Z. It also
  12. # comes with emacs19
  13. #
  14.  
  15. DCCDIR    = default
  16. LISPDIR    = default
  17. PACKAGEDIR    = default
  18.  
  19. EMACS    = emacs
  20. #EMACS    = mule
  21. XEMACS    = xemacs
  22. MANIFEST= contrib/MANIFEST.irchat-pj
  23.  
  24. MAKE    =    make.el
  25. THINGATPT=    contrib/thingatpt.el
  26.  
  27. # LDFLAGS for DCC 
  28. LDFLAGS    =
  29. # LDFLAGS    = -lgen -lnsl -lsocket
  30.  
  31. #
  32. # You shouldn't need to change anything after this point.
  33. #
  34.  
  35. TAR    = tar
  36. CC     = cc
  37. LD    = $(CC)
  38. CAT    = cat
  39. ECHO    = echo
  40. TEST    = test
  41. MKDIR    = mkdir
  42. INSTALL    = install
  43. INSTALL_DATA    = $(INSTALL) -m644
  44.  
  45. DCC_SRC    = dcc/dcc.c
  46. DCC_BIN    = dcc/dcc
  47.  
  48. all: $(DCC_BIN) pj
  49. dcc: $(DCC_BIN)
  50. irchat: pj
  51. install: install-dcc install-pj
  52.  
  53. # irchat-pj and browse-url-plus
  54. pj:    
  55.     $(EMACS) -batch -q -no-site-file -l ./$(MAKE) -f compile-pj
  56.  
  57. install-pj:
  58.     $(EMACS) -batch -q -no-site-file -l ./$(MAKE) -f install-pj $(LISPDIR)
  59.  
  60. # dcc
  61. $(DCC_BIN):    $(DCC_SRC)
  62.     $(LD) -o $@ $(DCC_SRC) $(LDFLAGS)
  63.  
  64. install-dcc: $(DCC_BIN)
  65.     $(EMACS) -batch -q -no-site-file -l ./$(MAKE) -f install-dcc $(DCCDIR)
  66.  
  67. # for XEmacs21 package
  68. package: $(DCC_BIN)
  69.     $(XEMACS) -batch -q -no-site-file -l ./$(MAKE) -f compile-pj
  70.  
  71. install-package:
  72.     $(XEMACS) -batch -q -no-site-file -l ./$(MAKE) -f install-package $(PACKAGEDIR)
  73.  
  74. # for XEmacs20 (also XEmacs21 without fsf-compat package)
  75. thingatpt: $(THINGATPT)
  76.     $(EMACS) -batch -q -no-site-file -f batch-byte-compile $(THINGATPT)
  77.  
  78. install-thingatpt: $(IPATH)
  79.     $(INSTALL_DATA) $(THINGATPT) $(THINGATPT)c `$(CAT) $(IPATH)`
  80.  
  81. # clean up
  82. clean: 
  83.     -rm -f *~ contrib/*~ dcc/*~ doc/*~ *.elc contrib/*.elc \
  84.         $(DCC_BIN) $(DCC_BIN).exe $(DCC_BIN).EXE $(IPATH)
  85.