source: Makefile.in @ 9f4e3f8

barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 9f4e3f8 was db0ac7e, checked in by Alejandro R. Sedeño <asedeno@mit.edu>, 13 years ago
Merged revisions 983-1032 via svnmerge from file:///afs/sipb.mit.edu/project/barnowl/src/svn/trunk ........ r985 | nelhage | 2008-03-11 12:38:20 -0400 (Tue, 11 Mar 2008) | 2 lines Generate less ugly error spew if a module fails to load ........ r986 | geofft | 2008-03-13 15:56:20 -0400 (Thu, 13 Mar 2008) | 1 line Added :webzephyr command with keybinding W. ........ r987 | asedeno | 2008-03-18 23:57:24 -0400 (Tue, 18 Mar 2008) | 2 lines Fix a race condition in which zephyrs received during init are not noticed until the next zephyr after entering the mainloop. ........ r988 | geofft | 2008-03-19 15:46:43 -0400 (Wed, 19 Mar 2008) | 6 lines IRC: explicitly include the network (-a $alias) in reply commands. This may be unnecessary because :irc-msg looks at getcurmsg() if it cannot automatically determine the network. ........ r989 | geofft | 2008-03-21 14:47:51 -0400 (Fri, 21 Mar 2008) | 1 line syntax error. ........ r990 | nelhage | 2008-03-26 02:24:26 -0400 (Wed, 26 Mar 2008) | 2 lines Fix sending jabbers to JIDs beginning with `+' ........ r994 | nelhage | 2008-03-29 17:02:05 -0400 (Sat, 29 Mar 2008) | 3 lines Compile zcrypt.c with -w so I don't get all these warnings in my compile output whenever I change any headers ........ r998 | geofft | 2008-03-31 01:59:47 -0400 (Mon, 31 Mar 2008) | 1 line Implement /me for outgoing IRC messages ........ r999 | geofft | 2008-03-31 09:58:56 -0400 (Mon, 31 Mar 2008) | 1 line I think this fixes the resizing bug. ........ r1000 | nelhage | 2008-03-31 11:29:29 -0400 (Mon, 31 Mar 2008) | 2 lines Make `svkversion' handle exported trees better ........ r1001 | nelhage | 2008-03-31 11:52:39 -0400 (Mon, 31 Mar 2008) | 2 lines Add a makefile rule to support emacs flymake-mode ........ r1015 | nelhage | 2008-04-04 14:58:45 -0400 (Fri, 04 Apr 2008) | 3 lines Bind the combinations the iPhone sends for arrow keys [probably other terminals, too] ........ r1018 | shadow | 2008-04-08 13:57:49 -0400 (Tue, 08 Apr 2008) | 2 lines avoid null pointer dereference if msg is NULL (or a 0 length is claimed) ........ r1019 | nelhage | 2008-04-09 18:08:26 -0400 (Wed, 09 Apr 2008) | 2 lines Fix some stupid typos ........ r1020 | chmrr | 2008-04-09 18:16:02 -0400 (Wed, 09 Apr 2008) | 3 lines r29300@kohr-ah: chmrr | 2008-04-09 18:14:37 -0400 * It's apparently a popular typo ........ r1022 | asedeno | 2008-04-16 17:05:36 -0400 (Wed, 16 Apr 2008) | 2 lines Jabber reply bugfix. Reported by several people, resolved by arolfe. ........ r1023 | nelhage | 2008-04-28 23:33:03 -0400 (Mon, 28 Apr 2008) | 3 lines Initialized merge tracking via "svnmerge" with revisions "735" from svn+ssh://lunatique.mit.edu/mit/barnowl/src/svn/branches/barnowl_unicode ........ r1024 | nelhage | 2008-04-28 23:33:12 -0400 (Mon, 28 Apr 2008) | 3 lines Initialized merge tracking via "svnmerge" with revisions "735" from svn+ssh://lunatique.mit.edu/mit/barnowl/src/svn/branches/barnowl_sqlite ........ r1025 | nelhage | 2008-04-29 01:21:12 -0400 (Tue, 29 Apr 2008) | 2 lines Clone owl_perl from the sqlite branch because I'm about to make use of it. ........ r1026 | nelhage | 2008-04-29 01:21:13 -0400 (Tue, 29 Apr 2008) | 4 lines Initial step of moving styles from the current mishmash of different options to a unified object interface. No backwards-compatibility support yet. ........ r1027 | nelhage | 2008-04-29 01:21:15 -0400 (Tue, 29 Apr 2008) | 2 lines Implement back-compat with old-style owl::format_msg() styles ........ r1028 | nelhage | 2008-04-29 01:21:16 -0400 (Tue, 29 Apr 2008) | 2 lines Remove nearly all references to the "basic" style. ........ r1029 | nelhage | 2008-04-29 01:21:17 -0400 (Tue, 29 Apr 2008) | 2 lines Support the `style' command again. Note that it is deprecated. ........ r1031 | nelhage | 2008-04-30 13:29:45 -0400 (Wed, 30 Apr 2008) | 2 lines Refactor default style code somewhat to be more easily extensible ........
  • Property mode set to 100644
File size: 4.0 KB
RevLine 
[1aee7d9]1# $Id$
2
[ac70242]3srcdir = @srcdir@
4VPATH = @srcdir@
5prefix = @prefix@
6exec_prefix = @exec_prefix@
[3354cea5]7datadir = @datadir@/barnowl
[ac70242]8bindir = @bindir@
9mandir = @mandir@
10
[7d4fbcd]11CC=@CC@
[d09e5a1]12LIBS=@LIBS@ -L./libfaim -lfaim
[5ff830a]13CFLAGS=@CFLAGS@ -I. -I./libfaim -DDATADIR=\"${datadir}\" -DOWL_SVN_REVNO=$(shell ./svkversion)
[7d4fbcd]14LDFLAGS=@LDFLAGS@
[15bd5ef]15XSUBPPDIR=@XSUBPPDIR@
[4ad3480]16XSUBPPFLAGS=@XSUBPPFLAGS@
[aaf6071]17INSTALL=@INSTALL@
18INSTALL_PROGRAM=@INSTALL_PROGRAM@
19INSTALL_DATA=@INSTALL_DATA@
[7ccc780]20ATHSTATIC=@ATHSTATIC@
[aaf6071]21
22BASE_SRCS=list.c message.c mainwin.c popwin.c zephyr.c messagelist.c \
23     commands.c global.c text.c fmtext.c editwin.c util.c logging.c \
[f1e629d]24     perlconfig.c keys.c functions.c zwrite.c viewwin.c help.c filter.c \
[aaf6071]25     regex.c history.c view.c dict.c variable.c filterelement.c pair.c \
[aa5f725]26     keypress.c keymap.c keybinding.c cmd.c context.c zcrypt.c \
[864ed35]27     aim.c buddy.c buddylist.c timer.c style.c errqueue.c \
[5f3168a]28     zbuddylist.c muxevents.c popexec.c obarray.c select.c wcwidth.c \
29     glib_compat.c
[aaf6071]30OWL_SRC = owl.c
31TESTER_SRC = tester.c
32
[3354cea5]33EXE = barnowl
[b547aa4]34PERL_MODULES = Jabber
35MODULE_DIRS = $(PERL_MODULES:%=perl/modules/%)
[3354cea5]36
[aaf6071]37BASE_OBJS = $(BASE_SRCS:.c=.o)
[7d4fbcd]38
[f1e629d]39GEN_C = varstubs.c perlglue.c perlwrap.c
[aaf6071]40GEN_H = owl_prototypes.h
41GEN_O = $(GEN_C:.c=.o)
42
43OBJS = $(BASE_OBJS) $(GEN_O)
44
[0ff8fb57]45AUTOGEN=$(GEN_C) $(GEN_H)
46#AUTOGEN=$(GEN_C)
[7d4fbcd]47
[1cf3f8d3]48HEADERS=$(GEN_H) owl.h config.h test.h
[07f715f]49
[7f1f1e7]50$(EXE): $(AUTOGEN) $(OBJS) owl.o libfaim
[7ccc780]51        $(ATHSTATIC) $(CC) -o $(EXE) owl.o $(OBJS) $(LDFLAGS) $(LIBS)
[7d4fbcd]52
[094009a]53tester: $(AUTOGEN) $(OBJS) tester.o
[7ccc780]54        $(ATHSTATIC) $(CC) -o tester tester.o $(OBJS) $(LDFLAGS) $(LIBS)
[7d4fbcd]55
[50558dc]56%.o: %.c $(HEADERS)
57        $(CC) -c $(CFLAGS) $< -o $@
58
59# zcrypt is old crufty DES code I don't want to touch
60# Disable all warnings when compiling it
61zcrypt.o: zcrypt.c $(HEADERS)
62        $(CC) -c $(CFLAGS) $< -w -o $@
63
[7d4fbcd]64test: tester
65        ./tester reg
66
[b547aa4]67clean: libfaimclean modules_clean
[3354cea5]68        $(RM) $(EXE) tester *.o $(AUTOGEN) owl_prototypes.h.new
[7d4fbcd]69
[d09e5a1]70distclean: clean libfaimdistclean
[42c33a6]71        $(RM) config.cache config.log config.status  Makefile config.h TAGS *~ core
[7d4fbcd]72
[b547aa4]73.PHONY: $(MODULE_DIRS)
74
75modules: $(MODULE_DIRS)
76modules_clean:
77        for i in $(MODULE_DIRS); do \
78                cd $$i; test ! -f Makefile || make clean; \
79        done
80
81$(MODULE_DIRS): %: %/Makefile
82        ( cd $@ && make $(notdir $@).par )
83
84$(MODULE_DIRS:=/Makefile): %/Makefile: %/Makefile.PL
85        ( cd $(dir $@) && perl -I../../lib Makefile.PL )
86
[0ff8fb57]87proto: owl_prototypes.h
[7d4fbcd]88
[11be665]89perlglue.c: perlglue.xs Makefile
[15bd5ef]90        perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes perlglue.xs > perlglue.c
[7d4fbcd]91
92varstubs.c: variable.c stubgen.pl
93        perl stubgen.pl > varstubs.c
94
[f1e629d]95perlwrap.c: perlwrap.pm encapsulate.pl
96        perl encapsulate.pl perlwrap.pm owl_perlwrap_codebuff > perlwrap.c
97
[aaf6071]98# Only move owl_prototypes.h into place if the new one is different
[0ff8fb57]99owl_prototypes.h: codelist.pl varstubs.c $(BASE_SRCS)
100        perl codelist.pl > owl_prototypes.h.new
101        @cmp -s owl_prototypes.h.new $@ || { \
[8c92848]102         test -f $@ && echo 'Interfaces changed!'; \
[0ff8fb57]103         echo mv -f owl_prototypes.h.new $@; \
104              mv -f owl_prototypes.h.new $@; }
105#owl_prototypes.h:
[aaf6071]106
[d5ebf3a]107.PHONY: tags clean distclean proto test check-syntax
[aaf6071]108
109tags: TAGS
110
111TAGS: $(BASE_SRCS) $(OWL_SRC) $(TESTER_SRC) $(GEN_C) owl.h $(GEN_H)
112        etags $(BASE_SRCS) $(OWL_SRC) $(TESTER_SRC) $(GEN_C) owl.h $(GEN_H)
113
[50558dc]114$(BASE_OBJS) varstubs.h: owl.h config.h owl_prototypes.h
[d09e5a1]115
116libfaim: libfaim/libfaim.a
117
118libfaim/libfaim.a:
119        (cd libfaim; $(MAKE))
120
121libfaimclean:
122        (cd libfaim; $(MAKE) clean)
123
124libfaimdistclean:
125        (cd libfaim; $(MAKE) distclean)
[aaf6071]126
[b547aa4]127all: $(EXE) $(MODULE_DIRS)
[ac70242]128
129install: all installdirs
[88cbd0a]130        ${INSTALL_PROGRAM} $(EXE) ${DESTDIR}${bindir}/$(EXE)
131        ${INSTALL_DATA} doc/owl.1 ${DESTDIR}${mandir}/man1/barnowl.1
[b547aa4]132        ${INSTALL} -d ${DESTDIR}${datadir}/lib
[e98a9f9]133        ${INSTALL} -d ${DESTDIR}${datadir}/modules
[2bdfed9]134        tar -C perl/lib --exclude .svn -cf - . | tar -C ${DESTDIR}${datadir}/lib -xf -
[b547aa4]135        for i in $(PERL_MODULES); do \
[e98a9f9]136                ${INSTALL_DATA} perl/modules/$$i/$$i.par ${DESTDIR}${datadir}/modules/$$i.par; \
[b547aa4]137        done
[ac70242]138
139installdirs: mkinstalldirs
[88cbd0a]140        ${srcdir}/mkinstalldirs ${DESTDIR}${bindir} ${DESTDIR}${mandir}/man1 ${DESTDIR}${datadir}
[d5ebf3a]141
142# For emacs flymake-mode
143check-syntax: proto
144        $(CC) $(CFLAGS) -Wall -Wextra -pedantic -fsyntax-only $(CHK_SOURCES)
Note: See TracBrowser for help on using the repository browser.