source: Makefile.am @ 3eb599d

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