source: Makefile.am @ 1167bf1

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