source: Makefile.am @ bbc31e4

Last change on this file since bbc31e4 was 353719a, checked in by David Benjamin <davidben@mit.edu>, 9 years ago
Start of perlvariables iteration N+1 New plan: the C <-> perl interface deals entirely with strings. Storage is entirely perl-side. C does not know and doesn't care about the underlying perl-side types. Note that this means an "int" variable in C land and an "int" variable in perl land have no relation.
  • Property mode set to 100644
File size: 2.8 KB
RevLine 
[eddee7e]1ACLOCAL_AMFLAGS = -I m4
[8073852]2
[89982ec]3GIT_DESCRIPTION := $(if $(wildcard .git),$(shell git describe --match='barnowl-*' HEAD 2>/dev/null))
4GIT_FLAGS := $(if $(GIT_DESCRIPTION),-DGIT_VERSION=$(GIT_DESCRIPTION:barnowl-%=%))
[8df704f]5
[37f27bc]6bin_PROGRAMS = barnowl.bin
[7d03c8d]7if ENABLE_ZCRYPT
8bin_PROGRAMS += zcrypt
9endif
10
11zcrypt_SOURCES = zcrypt.c filterproc.c
12
[5aa33fd]13check_PROGRAMS = tester.bin
[37f27bc]14
15barnowl_bin_SOURCES = $(BASE_SRCS) \
[0b65bd7]16     owl.h owl_perl.h config.h \
[ae333f0]17     owl.c \
[37f27bc]18     $(GEN_C) $(GEN_H)
19
[e2bc8ac]20man_MANS = doc/barnowl.1
[9d27ee8]21doc_DATA = doc/intro.txt doc/advanced.txt
[e2bc8ac]22
[12a6616]23barnowl_bin_LDADD = compat/libcompat.a libfaim/libfaim.a
[37f27bc]24
[de18326]25tester_bin_SOURCES = $(BASE_SRCS) \
[8bce750]26     owl.h owl_perl.h config.h \
[0b65bd7]27     $(GEN_C) $(GEN_H) \
28     tester.c
29
[12a6616]30tester_bin_LDADD = compat/libcompat.a libfaim/libfaim.a
[42ad917]31
[2fa9a1a0]32TESTS=runtests.sh
33
[ce35060]34AM_CPPFLAGS = -I$(top_srcdir)/ \
[8df704f]35           -I$(top_srcdir)/libfaim/ \
[858c9c4]36           -DDATADIR='"$(pkgdatadir)"' \
[5a57386]37           -DBINDIR='"$(bindir)"' \
[8df704f]38           $(GIT_FLAGS)
[37f27bc]39
[c266281]40CODELIST_SRCS=message.c mainwin.c popwin.c zephyr.c messagelist.c \
[353719a]41     commands.c global.c text.c fmtext.c editwin.c \
[06e04a9]42     util.c logging.c \
[37f27bc]43     perlconfig.c keys.c functions.c zwrite.c viewwin.c help.c filter.c \
44     regex.c history.c view.c dict.c variable.c filterelement.c pair.c \
[d564c3d]45     keypress.c keymap.c keybinding.c cmd.c context.c \
[37f27bc]46     aim.c buddy.c buddylist.c style.c errqueue.c \
[3f6555d]47     zbuddylist.c popexec.c select.c wcwidth.c \
[06e04a9]48     mainpanel.c msgwin.c sepbar.c editcontext.c signal.c closures.c
[37f9818]49
[8f9a044]50NORMAL_SRCS = filterproc.c window.c windowcb.c
[37f9818]51
52BASE_SRCS = $(CODELIST_SRCS) $(NORMAL_SRCS)
[37f27bc]53
[353719a]54GEN_C = varstubs.c perlglue.c gmarshal_funcs.c
55GEN_H = owl_prototypes.h gmarshal_funcs.h
[37f27bc]56
57BUILT_SOURCES = $(GEN_C) $(GEN_H)
58
[1ad4a4a]59# Only copy file into place if file.new is different
60%: %.new
61        @diff -U0 $@ $< || { \
62         test -f $@ && echo '$@ changed!'; \
63         echo cp -f $< $@; \
64              cp -f $< $@; }
65
[37f27bc]66proto: owl_prototypes.h
67
[39e81f7]68perlglue.c: perlglue.xs $(TYPEMAP)
[5b376388]69        $(AM_V_GEN)perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes perlglue.xs > perlglue.c
[37f27bc]70
[df49ff6]71varstubs.c: stubgen.pl variable.c
[76f0e19]72        $(AM_V_GEN)perl $< $(sort $(filter-out $<,$+)) > $@
[37f27bc]73
[37f9818]74owl_prototypes.h.new: codelist.pl varstubs.c $(CODELIST_SRCS)
[76f0e19]75        $(AM_V_GEN)perl $< $(sort $(filter-out $<,$+)) > $@
[37f27bc]76
[353719a]77gmarshal_funcs.h: marshal_types
78        glib-genmarshal --header $< > $@
79gmarshal_funcs.c: marshal_types
80        glib-genmarshal --body $< > $@
81
[37f27bc]82# For emacs flymake-mode
83check-syntax: proto
[ce35060]84        $(COMPILE) -Wall -Wextra -pedantic -fsyntax-only $(CHK_SOURCES)
[37f27bc]85
86install-data-local:
87        $(mkinstalldirs) ${DESTDIR}${pkgdatadir}/lib
88        (cd perl/lib && tar -cf - . ) | (cd ${DESTDIR}${pkgdatadir}/lib && tar -xf - )
89
90do_transform = $(shell echo '$(1)' | sed '$(transform)')
91install-exec-hook:
92        mv -f $(DESTDIR)$(bindir)/$(call do_transform,barnowl.bin) \
93              $(DESTDIR)$(bindir)/$(call do_transform,barnowl)
94
[12a6616]95SUBDIRS = compat libfaim perl
Note: See TracBrowser for help on using the repository browser.