source: Makefile.am

Last change on this file was 4fd3c04, checked in by Anders Kaseorg <andersk@mit.edu>, 7 years ago
Remove AIM support This code has received almost no security attention, and anyway, AIM is shutting down on December 15, 2017. https://aimemories.tumblr.com/post/166091776077/aimemories Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[eddee7e]1ACLOCAL_AMFLAGS = -I m4
[8073852]2
[ca1fb26a]3GIT_DESCRIPTION := $(if $(wildcard $(srcdir)/.git),$(shell cd $(srcdir) && git describe --match='barnowl-*' HEAD 2>/dev/null))
[866b391]4VERSION = $(if $(GIT_DESCRIPTION),$(GIT_DESCRIPTION:barnowl-%=%),$(DIST_VERSION))
5DIST_VERSION = @VERSION@
6-include $(srcdir)/DIST_VERSION.mk BUILD_VERSION.mk
[ca1fb26a]7
8FORCE:
9BUILD_VERSION.mk: $(if $(filter-out $(BUILD_VERSION),$(VERSION)),FORCE)
10        echo 'BUILD_VERSION = $(VERSION)' > $@
[866b391]11dist-hook:: $(if $(filter-out @VERSION@,$(VERSION)),dist-hook-version)
12dist-hook-version:
13        echo 'DIST_VERSION = $(VERSION)' > $(distdir)/DIST_VERSION.mk
[8df704f]14
[a223b6b]15bin_PROGRAMS = bin/barnowl
[7d03c8d]16if ENABLE_ZCRYPT
17bin_PROGRAMS += zcrypt
18endif
19
[02514d9]20zcrypt_SOURCES = zcrypt.c filterproc.c
21nodist_zcrypt_SOURCES = version.c
[7d03c8d]22
[a223b6b]23check_PROGRAMS = bin/tester
[b80bae0]24dist_check_DATA = t
25dist_check_SCRIPTS = runtests.sh
[37f27bc]26
[a223b6b]27noinst_SCRIPTS = barnowl
[574b952]28check_SCRIPTS = tester
29
[a223b6b]30barnowl tester: %: barnowl-wrapper.in bin/% Makefile
[1dba5bd]31        sed \
32            -e 's,[@]abs_srcdir[@],$(abs_srcdir),g' \
33            -e 's,[@]abs_builddir[@],$(abs_builddir),g' \
34            $< > $@
[574b952]35        chmod +x $@
36
[a223b6b]37bin_barnowl_SOURCES = $(BASE_SRCS) \
[3624a2c]38     owl.h owl_perl.h \
39     owl.c
[a223b6b]40nodist_bin_barnowl_SOURCES = $(GEN_C) $(GEN_H)
[37f27bc]41
[b80bae0]42dist_man_MANS = doc/barnowl.1
43dist_doc_DATA = doc/intro.txt doc/advanced.txt
[e2bc8ac]44
[4fd3c04]45bin_barnowl_LDADD = compat/libcompat.a
[37f27bc]46
[a223b6b]47bin_tester_SOURCES = $(BASE_SRCS) \
[3624a2c]48     owl.h owl_perl.h \
[0b65bd7]49     tester.c
[a223b6b]50nodist_bin_tester_SOURCES = $(GEN_C) $(GEN_H)
[0b65bd7]51
[4fd3c04]52bin_tester_LDADD = compat/libcompat.a
[42ad917]53
[2fa9a1a0]54TESTS=runtests.sh
55
[cb1243be]56AM_CPPFLAGS = \
[858c9c4]57           -DDATADIR='"$(pkgdatadir)"' \
[ca1fb26a]58           -DBINDIR='"$(bindir)"'
[37f27bc]59
[c266281]60CODELIST_SRCS=message.c mainwin.c popwin.c zephyr.c messagelist.c \
[353719a]61     commands.c global.c text.c fmtext.c editwin.c \
[06e04a9]62     util.c logging.c \
[37f27bc]63     perlconfig.c keys.c functions.c zwrite.c viewwin.c help.c filter.c \
64     regex.c history.c view.c dict.c variable.c filterelement.c pair.c \
[d564c3d]65     keypress.c keymap.c keybinding.c cmd.c context.c \
[4fd3c04]66     style.c errqueue.c \
[3f6555d]67     zbuddylist.c popexec.c select.c wcwidth.c \
[06e04a9]68     mainpanel.c msgwin.c sepbar.c editcontext.c signal.c closures.c
[37f9818]69
[b80bae0]70NORMAL_SRCS = filterproc.c filterproc.h window.c window.h windowcb.c
[37f9818]71
72BASE_SRCS = $(CODELIST_SRCS) $(NORMAL_SRCS)
[37f27bc]73
[ca1fb26a]74GEN_C = varstubs.c perlglue.c gmarshal_funcs.c version.c version.c.new
[0f5b08e]75GEN_H = owl_prototypes.h owl_prototypes.h.new gmarshal_funcs.h
[37f27bc]76
[685cca7]77BUILT_SOURCES = $(GEN_H)
[37f27bc]78
[1ad4a4a]79# Only copy file into place if file.new is different
[ca1fb26a]80owl_prototypes.h version.c: %: %.new
[1ad4a4a]81        @diff -U0 $@ $< || { \
82         test -f $@ && echo '$@ changed!'; \
83         echo cp -f $< $@; \
84              cp -f $< $@; }
85
[37f27bc]86proto: owl_prototypes.h
87
[25d7236]88perlglue.c: perlglue.xs typemap
[eb5e8fc]89        $(AM_V_GEN)perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes $< > $@
[37f27bc]90
[df49ff6]91varstubs.c: stubgen.pl variable.c
[76f0e19]92        $(AM_V_GEN)perl $< $(sort $(filter-out $<,$+)) > $@
[37f27bc]93
[37f9818]94owl_prototypes.h.new: codelist.pl varstubs.c $(CODELIST_SRCS)
[76f0e19]95        $(AM_V_GEN)perl $< $(sort $(filter-out $<,$+)) > $@
[37f27bc]96
[ca1fb26a]97version.c.new: Makefile BUILD_VERSION.mk
98        $(AM_V_GEN)echo 'const char *version = "$(VERSION)";' > $@
99
[353719a]100gmarshal_funcs.h: marshal_types
101        glib-genmarshal --header $< > $@
102gmarshal_funcs.c: marshal_types
103        glib-genmarshal --body $< > $@
104
[37f27bc]105# For emacs flymake-mode
106check-syntax: proto
[ce35060]107        $(COMPILE) -Wall -Wextra -pedantic -fsyntax-only $(CHK_SOURCES)
[37f27bc]108
[ca1fb26a]109CLEANFILES = $(BUILT_SOURCES) $(GEN_C) $(noinst_SCRIPTS) $(check_SCRIPTS) BUILD_VERSION.mk
[866b391]110MAINTAINERCLEANFILES = DIST_VERSION.mk
[b80bae0]111EXTRA_DIST = \
112    autogen.sh \
[574b952]113    barnowl-wrapper.in \
[b80bae0]114    codelist.pl \
[78b9503]115    doc/code.txt \
116    doc/owl-window.txt \
117    doc/releasing-barnowl.txt \
[b80bae0]118    examples \
119    marshal_types \
120    perlglue.xs \
121    scripts \
122    stubgen.pl \
[392b5cf]123    typemap \
124    cpanfile
[0f5b08e]125
[4fd3c04]126SUBDIRS = compat perl
Note: See TracBrowser for help on using the repository browser.