Makefile.in 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. ###############################################################################
  2. # This file is part of TinTin++ #
  3. # #
  4. # Copyright 2004-2019 Igor van den Hoven #
  5. # #
  6. # TinTin++ is free software; you can redistribute it and/or modify #
  7. # it under the terms of the GNU General Public License as published by #
  8. # the Free Software Foundation; either version 3 of the License, or #
  9. # (at your option) any later version. #
  10. # #
  11. # This program is distributed in the hope that it will be useful, #
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of #
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
  14. # GNU General Public License for more details. #
  15. # #
  16. # #
  17. # You should have received a copy of the GNU General Public License #
  18. # along with TinTin++. If not, see https://www.gnu.org/licenses. #
  19. ###############################################################################
  20. DEFINES = -D_GNU_SOURCE @DEFS@
  21. CC = @CC@ -Wall
  22. MAKE = @MAKE@
  23. prefix = @prefix@
  24. exec_prefix = @exec_prefix@
  25. bindir = ${DESTDIR}@bindir@
  26. docdir = @prefix@/doc
  27. #this is the standard CFLAGS options, this is what most people should use
  28. CFLAGS += $(DEFINES) @BIG5@
  29. LDFLAGS = @LDFLAGS@
  30. INCS = @MYINCLUDE@
  31. LIBS = @LIBS@
  32. # If you prefer to be able to enter ISO latin-1 characters instead
  33. # of being able to use the meta key for special emacs-like commands
  34. # uncomment the following line.
  35. #F1 = -DUSE_ISO_LATIN_ONE
  36. # If you need to make connections through a SOCKS server, uncomment
  37. # these 2 lines. You also need to modify LIBSOCKS to point to the location
  38. # of your SOCKS library.
  39. #F6 = -DSOCKS
  40. #LIBSOCKS = -lsocks5
  41. # DEFAULT_FILE_DIR is the path to tintin files.
  42. # DEFAULT_FILE_DIR = @HOME@
  43. DEFAULT_FILE_DIR = $(HOME)
  44. FFLAGS= $(F1) $(F6)
  45. OFILES = \
  46. files.o help.o strhash.o input.o main.o misc.o net.o parse.o debug.o \
  47. update.o history.o vt102.o terminal.o text.o memory.o math.o split.o \
  48. system.o mapper.o tables.o buffer.o event.o tokenize.o chat.o utf8.o \
  49. advertise.o list.o forkpty.o utils.o line.o data.o variable.o msdp.o \
  50. port.o scan.o telopt_client.o screen.o cursor.o nest.o show.o mccp.o \
  51. telopt_server.o draw.o log.o path.o session.o class.o config.o ssl.o \
  52. regex.o trigger.o substitute.o
  53. default: all
  54. all: tt++
  55. tt++: Makefile $(OFILES) tintin.h
  56. @echo "---- Linking..."
  57. $(CC) $(INCS) $(CFLAGS) $(FFLAGS) $(LDFLAGS) -o $@ $(OFILES) $(LIBS) ${LIBSOCKS}
  58. Makefile: Makefile.in
  59. @echo "You need to run ./configure first; then try make."
  60. @exit 1
  61. install: tt++
  62. -mkdir -p $(bindir)
  63. cp -f tt++ $(bindir)
  64. # -mkdir -p $(docdir)
  65. # cp ../docs/* ../[A-Z][A-Z]* $(docdir)
  66. # Autocompile all .c files into .o files using this rule:
  67. .c.o:
  68. $(CC) $(PIPE) $(CFLAGS) $(FFLAGS) $(INCS) -c $<
  69. clean:
  70. rm -f *.o *~ ../*~ ../mods/*~ tt++*
  71. distclean:
  72. rm -f *.o *~ ../*~ ../mods/*~ tt++* Makefile config.h config.status config.log