source: Makefile.am @ 1fdca1b

release-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 1fdca1b was 39e81f7, checked in by Nelson Elhage <nelhage@mit.edu>, 15 years ago
Return unicode strings to perl. Define a new typedef, 'utf8', in perlglue.xs, and use a typemap that indicates that values of type utf8* should be returned to perl as Unicode strings. There is no good reason that get_{data,config}_dir should not also return unicode, except that making them do so crashes my barnowl in some extremely strange and hard-to-debug manner.
  • Property mode set to 100644
File size: 2.2 KB
Line 
1ACLOCAL_AMFLAGS = -I m4
2
3bin_PROGRAMS = barnowl.bin
4check_PROGRAMS = tester perl_tester
5
6barnowl_bin_SOURCES = $(BASE_SRCS) \
7     owl.h owl_perl.h config.h \
8     owl.c \
9     $(GEN_C) $(GEN_H)
10
11barnowl_bin_LDADD = libfaim/libfaim.a
12
13tester_SOURCES = $(BASE_SRCS) \
14     owl.h owl_perl.h config.h \
15     $(GEN_C) $(GEN_H) \
16     tester.c
17
18tester_LDADD = libfaim/libfaim.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
30CPPFLAGS = -I$(top_srcdir)/ \
31           -I$(top_srcdir)/libfaim/
32
33BASE_SRCS=list.c message.c mainwin.c popwin.c zephyr.c messagelist.c \
34     commands.c global.c text.c fmtext.c editwin.c util.c logging.c \
35     perlconfig.c keys.c functions.c zwrite.c viewwin.c help.c filter.c \
36     regex.c history.c view.c dict.c variable.c filterelement.c pair.c \
37     keypress.c keymap.c keybinding.c cmd.c context.c zcrypt.c \
38     aim.c buddy.c buddylist.c style.c errqueue.c \
39     zbuddylist.c popexec.c obarray.c select.c wcwidth.c \
40     glib_compat.c
41
42GEN_C = varstubs.c perlglue.c
43GEN_H = owl_prototypes.h
44
45TYPEMAP = typemap
46
47BUILT_SOURCES = $(GEN_C) $(GEN_H)
48
49# Only copy file into place if file.new is different
50%: %.new
51        @diff -U0 $@ $< || { \
52         test -f $@ && echo '$@ changed!'; \
53         echo cp -f $< $@; \
54              cp -f $< $@; }
55
56proto: owl_prototypes.h
57
58perlglue.c: perlglue.xs $(TYPEMAP)
59        $(AM_V_GEN)perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes perlglue.xs -typemap $(TYPEMAP) > perlglue.c
60
61varstubs.c: stubgen.pl variable.c
62        $(AM_V_GEN)perl $< $(filter-out $<,$+) > $@
63
64owl_prototypes.h.new: codelist.pl varstubs.c $(BASE_SRCS)
65        $(AM_V_GEN)perl $< $(filter-out $<,$+) > $@
66
67# For emacs flymake-mode
68check-syntax: proto
69        $(CC) $(CFLAGS) -Wall -Wextra -pedantic -fsyntax-only $(CHK_SOURCES)
70
71install-data-local:
72        $(mkinstalldirs) ${DESTDIR}${pkgdatadir}/lib
73        (cd perl/lib && tar -cf - . ) | (cd ${DESTDIR}${pkgdatadir}/lib && tar -xf - )
74
75do_transform = $(shell echo '$(1)' | sed '$(transform)')
76install-exec-hook:
77        mv -f $(DESTDIR)$(bindir)/$(call do_transform,barnowl.bin) \
78              $(DESTDIR)$(bindir)/$(call do_transform,barnowl)
79
80SUBDIRS = libfaim/ perl/modules/
Note: See TracBrowser for help on using the repository browser.