diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 83 | ||||
-rw-r--r-- | src/gui/Makefile | 64 | ||||
-rw-r--r-- | src/gui/curses/Makefile | 38 | ||||
-rw-r--r-- | src/gui/gtk/Makefile | 40 | ||||
-rw-r--r-- | src/gui/qt/Makefile | 37 | ||||
-rw-r--r-- | src/irc/Makefile | 60 |
6 files changed, 0 insertions, 322 deletions
diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index 367070e34..000000000 --- a/src/Makefile +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright (c) 2003 FlashCode <flashcode@flashtux.org> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -CC=gcc - -OPTIONS=-Wall -W -pipe -O2 - -OUTPUT=weechat - -OBJS=weechat.o config.o command.o completion.o history.o -OBJS_IRC=irc/irc.a -OBJS_GUI=gui/gui.a gui/gui-common.o - - -# WeeChat with Curses interface -ifeq ($(GUI), curses) -LIBS_CURSES=-lcurses -DEFINES=WEE_CURSES - -curses: $(OBJS) $(OBJS_IRC) $(OBJS_GUI) - $(CC) $(OPTIONS) $(OBJS) $(OBJS_IRC) $(OBJS_GUI) -o $(OUTPUT) $(LIBS_CURSES) -endif - -# WeeChat with Gtk+ interface -ifeq ($(GUI), gtk) -OBJS_GTK=gui-gtk.o -LIBS_GTK=`pkg-config --libs gtk+-2.0` -INCLUDES=`pkg-config --cflags gtk+-2.0` -DEFINES=WEE_GTK -gtk: $(OBJS) $(OBJS_IRC) $(OBJS_GUI) - $(CC) $(OPTIONS) $(OBJS) $(OBJS_IRC) $(OBJS_GUI) -o $(OUTPUT) $(LIBS_GTK) -endif - -# WeeChat with Qt interface -ifeq ($(GUI), qt) -OBJS_QT=gui-qt.o -LIBS_QT= -DEFINES=WEE_QT -qt: $(OBJS) $(OBJS_IRC) $(OBJS_GUI) - $(CC) $(OPTIONS) $(OBJS) $(OBJS_IRC) $(OBJS_GUI) -o $(OUTPUT) $(LIBS_QT) -endif - - -all: - make curses GUI=curses - -$(OBJS): - $(CC) $(OPTIONS) -o $@ -c $< $(INCLUDES) -D$(DEFINES) - -irc/irc.a: - cd irc && make GUI=$(GUI) - -gui/gui.a: - cd gui && make $(GUI) GUI=$(GUI) - -clean: - rm -f *.o *.a *~ core $(OUTPUT) - cd irc && make clean - cd gui && make clean - -command.o: command.c weechat.h command.h irc/irc.h gui/gui.h completion.h \ - history.h config.h -completion.o: completion.c weechat.h completion.h irc/irc.h gui/gui.h \ - history.h command.h -config.o: config.c weechat.h config.h command.h irc/irc.h gui/gui.h \ - completion.h history.h -history.o: history.c weechat.h history.h gui/gui.h completion.h -weechat.o: weechat.c weechat.h config.h command.h irc/irc.h gui/gui.h \ - completion.h history.h diff --git a/src/gui/Makefile b/src/gui/Makefile deleted file mode 100644 index ea1b051ae..000000000 --- a/src/gui/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright (c) 2003 FlashCode <flashcode@flashtux.org> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -CC=gcc - -OPTIONS=-Wall -W -pipe -O2 - -OUTPUT=../gui.a -OBJS=gui-common.o - -# WeeChat with Curses interface -ifeq ($(GUI), curses) -DEFINES=WEE_CURSES -curses: curses/gui.a $(OBJS) -curses/gui.a: - cd curses && make -endif - -# WeeChat with Gtk+ interface -ifeq ($(GUI), gtk) -INCLUDES=`pkg-config --cflags gtk+-2.0` -DEFINES=WEE_GTK -gtk: gtk/gui.a $(OBJS) -gtk/gui.a: - cd gtk && make -endif - -# WeeChat with Qt interface -ifeq ($(GUI), qt) -DEFINES=WEE_QT -qt: qt/gui.a $(OBJS) -qt/gui.a: - cd qt && make -endif - - -all: - make curses GUI=curses - -$(OBJS): - $(CC) $(OPTIONS) -o $@ -c $< $(INCLUDES) -D$(DEFINES) - -clean: - rm -f *.o *.a *~ core - cd curses && make clean - cd gtk && make clean - cd qt && make clean - -gui-common.o: gui-common.c ../weechat.h gui.h ../completion.h \ - ../history.h ../irc/irc.h ../gui/gui.h diff --git a/src/gui/curses/Makefile b/src/gui/curses/Makefile deleted file mode 100644 index 80f800dd9..000000000 --- a/src/gui/curses/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright (c) 2003 FlashCode <flashcode@flashtux.org> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -CC=gcc - -OPTIONS=-Wall -W -pipe -O2 - -OUTPUT=../gui.a -OBJS=gui-display.o gui-input.o -DEFINES=WEE_CURSES - -all: $(OBJS) - ar r $(OUTPUT) $(OBJS) - -$(OBJS): - $(CC) $(OPTIONS) -o $@ -c $< $(INCLUDES) -D$(DEFINES) - -clean: - rm -f *.o *.a *~ core - -gui-display.o: gui-display.c ../../weechat.h ../gui.h ../../completion.h \ - ../../history.h ../../config.h ../../irc/irc.h ../../gui/gui.h -gui-input.o: gui-input.c ../../weechat.h ../gui.h ../../completion.h \ - ../../history.h ../../command.h ../../irc/irc.h ../../gui/gui.h diff --git a/src/gui/gtk/Makefile b/src/gui/gtk/Makefile deleted file mode 100644 index 0da1a6390..000000000 --- a/src/gui/gtk/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright (c) 2003 FlashCode <flashcode@flashtux.org> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -CC=gcc - -OPTIONS=-Wall -W -pipe -O2 - -OUTPUT=../gui.a -OBJS=gui-display.o gui-input.o -INCLUDES=`pkg-config --cflags gtk+-2.0` -DEFINES=WEE_GTK - -all: $(OBJS) - ar r $(OUTPUT) $(OBJS) - -$(OBJS): - $(CC) $(OPTIONS) -o $@ -c $< $(INCLUDES) -D$(DEFINES) - -clean: - rm -f *.o *.a *~ core - -gui-display.o: gui-display.c ../../weechat.h ../gui.h ../../completion.h \ - ../../history.h ../../config.h ../../irc/irc.h ../../gui/gui.h -gui-input.o: gui-input.c ../../weechat.h ../gui.h ../../completion.h \ - ../../history.h ../../config.h ../../command.h ../../irc/irc.h \ - ../../gui/gui.h diff --git a/src/gui/qt/Makefile b/src/gui/qt/Makefile deleted file mode 100644 index f0695d3a3..000000000 --- a/src/gui/qt/Makefile +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright (c) 2003 FlashCode <flashcode@flashtux.org> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -CC=gcc - -OPTIONS=-Wall -W -pipe -O2 - -OUTPUT=../gui.a -OBJS=gui-display.o gui-input.o -DEFINES=WEE_QT - -all: $(OBJS) - ar r $(OUTPUT) $(OBJS) - -$(OBJS): - $(CC) $(OPTIONS) -o $@ -c $< $(INCLUDES) -D$(DEFINES) - -clean: - rm -f *.o *.a *~ core - -gui-display.o: gui-display.c ../../weechat.h ../gui.h ../../config.h \ - ../../irc/irc.h ../../gui/gui.h -gui-input.o: gui-input.c ../../weechat.h ../gui.h diff --git a/src/irc/Makefile b/src/irc/Makefile deleted file mode 100644 index 245a59213..000000000 --- a/src/irc/Makefile +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright (c) 2003 FlashCode <flashcode@flashtux.org> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -CC=gcc - -OPTIONS=-Wall -W -pipe -O2 - -OUTPUT=irc.a -OBJS=irc-commands.o irc-send.o irc-recv.o irc-display.o irc-server.o irc-channel.o irc-nick.o -DEFINES=WEE_CURSES - -ifeq ($(GUI), curses) -DEFINES=WEE_CURSES -endif -ifeq ($(GUI), gtk) -INCLUDES=`pkg-config --cflags gtk+-2.0` -DEFINES=WEE_GTK -endif -ifeq ($(GUI), qt) -DEFINES=WEE_QT -endif - - -all: $(OBJS) - ar r $(OUTPUT) $(OBJS) - -$(OBJS): - $(CC) $(OPTIONS) -o $@ -c $< $(INCLUDES) -D$(DEFINES) - -clean: - rm -f *.o *.a *~ core - -irc-channel.o: irc-channel.c ../weechat.h irc.h ../gui/gui.h \ - ../completion.h ../history.h -irc-commands.o: irc-commands.c ../weechat.h irc.h ../gui/gui.h \ - ../completion.h ../history.h ../command.h ../irc/irc.h ../config.h -irc-display.o: irc-display.c ../weechat.h irc.h ../gui/gui.h \ - ../completion.h ../history.h ../config.h -irc-nick.o: irc-nick.c ../weechat.h irc.h ../gui/gui.h ../completion.h \ - ../history.h -irc-recv.o: irc-recv.c ../weechat.h irc.h ../gui/gui.h ../completion.h \ - ../history.h ../command.h ../irc/irc.h ../config.h -irc-send.o: irc-send.c ../weechat.h irc.h ../gui/gui.h ../completion.h \ - ../history.h ../command.h ../irc/irc.h ../config.h -irc-server.o: irc-server.c ../weechat.h irc.h ../gui/gui.h \ - ../completion.h ../history.h |