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 >
Wrap
Makefile
|
1998-05-11
|
2KB
|
75 lines
# comment next lines if you don't want perl support
USE_SCRIPT=1
perl_path = /usr/lib/perl5/i386-linux/5.004/CORE
# comment next line if you don't want any GUI output, mostly if you want to
# run this as bot.. :)
USE_GUI=1
# comment next lines if you don't want gnome support (bacause you haven't
# installed gnome)
USE_GNOME=1
gnome_path = /usr/local/gnome
# destination directory where to install yagIRC (destdir/etc, destdir/usr/bin)
#destdir=/tmp
exe = yagirc
version = 0.51
objs = dcc.o network.o irc.o commands.o events-named.o events-numeric.o ctcp.o os.o misc.o
ifdef USE_GUI
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
gui_cflags = -DUSE_GUI
gui_lflags = `gtk-config --libs`
else
objs += no_ui.o
gui_lflags = -lglib
endif
ifdef USE_SCRIPT
perl_cflags = -DUSE_SCRIPT -I$(perl_path)
perl_lflags = -L$(perl_path) -lperl -lcrypt
objs += script.o
endif
ifdef USE_GNOME
gnome_lflags = -L$(gnome_path)/lib -lgnomeui -lgnome -lgnomesupport
gnome_cflags = -DUSE_GNOME -I$(gnome_path)/include -I$(gnome_path)/lib/gnome-libs/include
endif
cc = cc
cp = $(cc)
cflags = -Wall -g -O2 -m486 -pipe `gtk-config --cflags` $(perl_cflags) $(gui_cflags) $(gnome_cflags)
ld = cc
lflags = $(gui_lflags) $(perl_lflags) $(gnome_lflags) -lm
.SUFFIXES: .c .cpp .o
.c.o:
$(cc) $(cflags) -c $< -o $*.o
.cpp.o:
$(cp) $(cflags) -c $< -o $*.o
.cc.o:
$(cp) $(cflags) -c $< -o $*.o
$(exe): $(objs)
$(ld) $(objs) -o $(exe) $(lflags)
all: $(exe)
install: all
install -s $(exe) $(destdir)/usr/bin/
install -m 0644 yagirc.conf $(destdir)/etc/
clean:
/bin/rm -f core *.o $(objs) $(exe)
distclean: clean
/bin/rm -f *~
dist: distclean
/bin/sh -c "cd .. ; tar czf yagirc-$(version).tar.gz yagirc-$(version)"