############################################################################### # TinTin++ # # Copyright (C) 2006 (See CREDITS file) # # # # This program is protected under the GNU GPL (See COPYING) # # # # 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 # ############################################################################### DEFINES = -D_GNU_SOURCE @DEFS@ CC = @CC@ -Wall MAKE = @MAKE@ #this is the standard CFLAGS options, this is what most people should use CFLAGS = $(DEFINES) @BIG5@ LDFLAGS = @LDFLAGS@ INCS = @MYINCLUDE@ LIBS = @MYLIB@ @LIBS@ # If you prefer to be able to enter ISO latin-1 characters instead # of being able to use the meta key for special emacs-like commands # uncomment the following line. #F1 = -DUSE_ISO_LATIN_ONE # If you need to make connections through a SOCKS server, uncomment # these 2 lines. You also need to modify LIBSOCKS to point to the location # of your SOCKS library. #F6 = -DSOCKS #LIBSOCKS = -lsocks5 # BINDIR is the directory you wish tt++ to be placed if you wish to use # make install. BINDIR = @mybindir@ # DEFAULT_FILE_DIR is the path to tintin files. # DEFAULT_FILE_DIR = @HOME@ DEFAULT_FILE_DIR = $(HOME) FFLAGS= $(F1) $(F6) OFILES = action.o alias.o files.o help.o highlight.o strhash.o \ llist.o log.o main.o misc.o net.o parse.o path.o update.o \ history.o tab.o vt102.o terminal.o session.o function.o \ text.o substitute.o tick.o math.o variables.o debug.o \ tinexp.o mapper.o tables.o buffer.o prompt.o telopt.o \ class.o split.o utils.o macro.o config.o gag.o \ chat.o array.o input.o cursor.o event.o default: all all: tt++ tt++: Makefile $(OFILES) tintin.h @echo "---- Linking..." $(CC) $(INCS) $(CFLAGS) $(FFLAGS) $(LDFLAGS) -o $@ $(OFILES) $(LIBS) ${LIBSOCKS} Makefile: Makefile.in @echo "You need to run ./configure first; then try make." @exit 1 install: tt++ cp tt++ /usr/bin # Autocompile all .c files into .o files using this rule: .c.o: $(CC) $(PIPE) $(CFLAGS) $(FFLAGS) $(INCS) -c $< clean: rm -f *.o *~ ../*~ ../mods/*~ tt++* distclean: clean rm -f *.o *~ ../*~ ../mods/*~ tt++* Makefile config.h config.status config.log config.cache