source: Makefile.am @ 2693b12

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