source: Makefile.am @ 3daca13

release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 3daca13 was 3daca13, checked in by Nelson Elhage <nelhage@mit.edu>, 13 years ago
zcrypt.c: Clean up warnings. Signed-off-by: Anders Kaseorg <andersk@mit.edu> [nelhage@mit.edu: Abstract keys into owl_zcrypt_string_to_schedule] Signed-off-by: Nelson Elhage <nelhage@mit.edu>
  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[37f27bc]1bin_PROGRAMS = barnowl.bin
[0b65bd7]2check_PROGRAMS = tester
[37f27bc]3
4barnowl_bin_SOURCES = $(BASE_SRCS) \
[0b65bd7]5     owl.h owl_perl.h config.h \
[37f27bc]6     owl.c \
7     libzcrypt.a \
8     $(GEN_C) $(GEN_H)
9
10barnowl_bin_LDADD = libfaim/libfaim.a libzcrypt.a
11
[0b65bd7]12tester_SOURCES = $(BASE_SRCS) \
[8bce750]13     owl.h owl_perl.h config.h \
[0b65bd7]14     libzcrypt.a \
15     $(GEN_C) $(GEN_H) \
16     tester.c
17
[d851bbc]18tester_LDADD = libfaim/libfaim.a libzcrypt.a
19
[2fa9a1a0]20TESTS=runtests.sh
21
[37f27bc]22noinst_LIBRARIES = libzcrypt.a
23
24libzcrypt_a_SOURCES = zcrypt.c
25
26CPPFLAGS = -I$(top_srcdir)/ \
27           -I$(top_srcdir)/libfaim/
28
29BASE_SRCS=list.c message.c mainwin.c popwin.c zephyr.c messagelist.c \
30     commands.c global.c text.c fmtext.c editwin.c util.c logging.c \
31     perlconfig.c keys.c functions.c zwrite.c viewwin.c help.c filter.c \
32     regex.c history.c view.c dict.c variable.c filterelement.c pair.c \
33     keypress.c keymap.c keybinding.c cmd.c context.c \
34     aim.c buddy.c buddylist.c style.c errqueue.c \
35     zbuddylist.c popexec.c obarray.c select.c wcwidth.c \
36     glib_compat.c
37
38GEN_C = varstubs.c perlglue.c
39GEN_H = owl_prototypes.h
40
41BUILT_SOURCES = $(GEN_C) $(GEN_H)
42
[1ad4a4a]43# Only copy file into place if file.new is different
44%: %.new
45        @diff -U0 $@ $< || { \
46         test -f $@ && echo '$@ changed!'; \
47         echo cp -f $< $@; \
48              cp -f $< $@; }
49
[37f27bc]50proto: owl_prototypes.h
51
52perlglue.c: perlglue.xs
[636de2a]53        $(AM_V_GEN)perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes perlglue.xs > perlglue.c
[37f27bc]54
[df49ff6]55varstubs.c: stubgen.pl variable.c
[636de2a]56        $(AM_V_GEN)perl $< $(filter-out $<,$+) > $@
[37f27bc]57
[3d9f4d3]58owl_prototypes.h.new: codelist.pl varstubs.c $(BASE_SRCS) zcrypt.c
[636de2a]59        $(AM_V_GEN)perl $< $(filter-out $<,$+) > $@
[37f27bc]60
61# For emacs flymake-mode
62check-syntax: proto
63        $(CC) $(CFLAGS) -Wall -Wextra -pedantic -fsyntax-only $(CHK_SOURCES)
64
65install-data-local:
66        $(mkinstalldirs) ${DESTDIR}${pkgdatadir}/lib
67        (cd perl/lib && tar -cf - . ) | (cd ${DESTDIR}${pkgdatadir}/lib && tar -xf - )
68
69do_transform = $(shell echo '$(1)' | sed '$(transform)')
70install-exec-hook:
71        mv -f $(DESTDIR)$(bindir)/$(call do_transform,barnowl.bin) \
72              $(DESTDIR)$(bindir)/$(call do_transform,barnowl)
73
74SUBDIRS = libfaim/ perl/modules/
Note: See TracBrowser for help on using the repository browser.