home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / yagirc-0.51.tar.gz / yagirc-0.51.tar / yagirc-0.51 / Makefile < prev    next >
Makefile  |  1998-05-11  |  2KB  |  75 lines

  1. # comment next lines if you don't want perl support
  2. USE_SCRIPT=1
  3. perl_path = /usr/lib/perl5/i386-linux/5.004/CORE
  4.  
  5. # comment next line if you don't want any GUI output, mostly if you want to
  6. # run this as bot.. :)
  7. USE_GUI=1
  8.  
  9. # comment next lines if you don't want gnome support (bacause you haven't
  10. # installed gnome)
  11. USE_GNOME=1
  12. gnome_path = /usr/local/gnome
  13.  
  14. # destination directory where to install yagIRC (destdir/etc, destdir/usr/bin)
  15. #destdir=/tmp
  16.  
  17. exe = yagirc
  18. version = 0.51
  19. objs = dcc.o network.o irc.o commands.o events-named.o events-numeric.o ctcp.o os.o misc.o
  20.  
  21. ifdef USE_GUI
  22. objs += gui.o gui_join.o gui_connect.o gui_setup.o gui_setup_outlook.o gui_setup_lists.o gui_setup_alias.o gui_setup_server.o gui_setup_dcc.o gui_menu.o gui_menufactory.o gui_channels.o gui_dcc.o gui_nicklist.o
  23. gui_cflags = -DUSE_GUI
  24. gui_lflags = `gtk-config --libs`
  25. else
  26. objs += no_ui.o
  27. gui_lflags = -lglib
  28. endif
  29.  
  30. ifdef USE_SCRIPT
  31. perl_cflags = -DUSE_SCRIPT -I$(perl_path)
  32. perl_lflags = -L$(perl_path) -lperl -lcrypt
  33. objs += script.o
  34. endif
  35.  
  36. ifdef USE_GNOME
  37. gnome_lflags = -L$(gnome_path)/lib -lgnomeui -lgnome -lgnomesupport
  38. gnome_cflags = -DUSE_GNOME -I$(gnome_path)/include -I$(gnome_path)/lib/gnome-libs/include
  39. endif
  40.  
  41. cc = cc
  42. cp = $(cc)
  43. cflags = -Wall -g -O2 -m486 -pipe `gtk-config --cflags` $(perl_cflags) $(gui_cflags) $(gnome_cflags)
  44.  
  45. ld = cc
  46. lflags = $(gui_lflags) $(perl_lflags) $(gnome_lflags) -lm
  47.  
  48. .SUFFIXES: .c .cpp .o
  49.  
  50. .c.o:
  51.     $(cc) $(cflags) -c $< -o $*.o
  52. .cpp.o:
  53.     $(cp) $(cflags) -c $< -o $*.o
  54. .cc.o:
  55.     $(cp) $(cflags) -c $< -o $*.o
  56.  
  57. $(exe): $(objs)
  58.     $(ld) $(objs) -o $(exe) $(lflags)
  59.  
  60. all: $(exe)
  61.  
  62. install: all
  63.     install -s $(exe) $(destdir)/usr/bin/
  64.     install -m 0644 yagirc.conf $(destdir)/etc/
  65.  
  66. clean:
  67.     /bin/rm -f core *.o $(objs) $(exe)
  68.  
  69. distclean: clean
  70.     /bin/rm -f *~
  71.  
  72. dist: distclean
  73.     /bin/sh -c "cd .. ; tar czf yagirc-$(version).tar.gz yagirc-$(version)"
  74.  
  75.