source: Makefile.am @ b644688

release-1.10release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since b644688 was 76f0e19, checked in by Alex Vandiver <alex@chmrr.net>, 15 years ago
Sort files before feeding them to programs which grovel through them, for consistency
  • Property mode set to 100644
File size: 2.1 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     $(GEN_C) $(GEN_H) \
23     perl_tester.c
24
25perl_tester_LDADD = libfaim/libfaim.a
26
27TESTS=runtests.sh
28
29CPPFLAGS = -I$(top_srcdir)/ \
30           -I$(top_srcdir)/libfaim/
31
32BASE_SRCS=list.c message.c mainwin.c popwin.c zephyr.c messagelist.c \
33     commands.c global.c text.c fmtext.c editwin.c util.c logging.c \
34     perlconfig.c keys.c functions.c zwrite.c viewwin.c help.c filter.c \
35     regex.c history.c view.c dict.c variable.c filterelement.c pair.c \
36     keypress.c keymap.c keybinding.c cmd.c context.c zcrypt.c \
37     aim.c buddy.c buddylist.c style.c errqueue.c \
38     zbuddylist.c popexec.c obarray.c select.c wcwidth.c \
39     glib_compat.c
40
41GEN_C = varstubs.c perlglue.c
42GEN_H = owl_prototypes.h
43
44BUILT_SOURCES = $(GEN_C) $(GEN_H)
45
46# Only copy file into place if file.new is different
47%: %.new
48        @diff -U0 $@ $< || { \
49         test -f $@ && echo '$@ changed!'; \
50         echo cp -f $< $@; \
51              cp -f $< $@; }
52
53proto: owl_prototypes.h
54
55perlglue.c: perlglue.xs $(TYPEMAP)
56        $(AM_V_GEN)perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes perlglue.xs > perlglue.c
57
58varstubs.c: stubgen.pl variable.c
59        $(AM_V_GEN)perl $< $(sort $(filter-out $<,$+)) > $@
60
61owl_prototypes.h.new: codelist.pl varstubs.c $(BASE_SRCS)
62        $(AM_V_GEN)perl $< $(sort $(filter-out $<,$+)) > $@
63
64# For emacs flymake-mode
65check-syntax: proto
66        $(CC) $(CFLAGS) -Wall -Wextra -pedantic -fsyntax-only $(CHK_SOURCES)
67
68install-data-local:
69        $(mkinstalldirs) ${DESTDIR}${pkgdatadir}/lib
70        (cd perl/lib && tar -cf - . ) | (cd ${DESTDIR}${pkgdatadir}/lib && tar -xf - )
71
72do_transform = $(shell echo '$(1)' | sed '$(transform)')
73install-exec-hook:
74        mv -f $(DESTDIR)$(bindir)/$(call do_transform,barnowl.bin) \
75              $(DESTDIR)$(bindir)/$(call do_transform,barnowl)
76
77SUBDIRS = libfaim/ perl/modules/
Note: See TracBrowser for help on using the repository browser.