source: Makefile.am @ d7bcff8

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