source: Makefile.in @ 217a43e

barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 217a43e was 8ee73f8d, checked in by Erik Nygren <nygren@mit.edu>, 22 years ago
Fixed a memory reference bug in delete and undelete commands. Added support for perl to call directly back into owl. Changed the implementation of owl::command("...") to immediately call back into owl. This allows perl to get the return value of strings returned by owl commands. Added the getview command which returns the name of the current view's filter. Added the getvar command which returns the value of a variable. Added an example to examples/owlconf.erik which uses TAB to narrow and restore the view. Added an example to examples/owlconf.erik which uses M-c to color messages matching the current one green.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1
2# $Id$
3
4CC=@CC@
5LIBS=@LIBS@
6#CFLAGS=@CFLAGS@ @DEFS@
7CFLAGS=@CFLAGS@
8LDFLAGS=@LDFLAGS@
9XSUBPPDIR=@XSUBPPDIR@
10
11OBJS=list.o message.o mainwin.o popwin.o zephyr.o messagelist.o commands.o \
12     global.o text.o fmtext.o editwin.o util.o logging.o readconfig.o keys.o \
13     functions.o zwrite.o viewwin.o help.o filter.o regex.o history.o view.o \
14     dict.o variable.o varstubs.o filterelement.o \
15     keypress.o keymap.o keybinding.o cmd.o context.o perlglue.o
16
17AUTOGEN=owl_prototypes.h varstubs.c perlglue.c
18
19owl: $(AUTOGEN) $(OBJS) owl.o
20        $(CC) -o owl owl.o $(OBJS) $(LDFLAGS) $(LIBS)
21
22tester: $(AUTOGEN) $(OBJS) tester.o
23        $(CC) -o tester tester.o $(OBJS) $(LDFLAGS) $(LIBS)
24
25test: tester
26        ./tester reg
27
28clean:
29        $(RM) *~ *.o owl tester core $(AUTOGEN) owl_prototypes.h.new
30
31distclean: clean
32        $(RM) config.cache config.log config.status Makefile config.h TAGS
33
34proto: owl_prototypes.h
35
36perlglue.c: perlglue.xs
37        perl $(XSUBPPDIR)/xsubpp -typemap $(XSUBPPDIR)/typemap -prototypes perlglue.xs > perlglue.c
38
39varstubs.c: variable.c stubgen.pl
40        perl stubgen.pl > varstubs.c
41
42# Only move owl_prototypes.h into place if the new one is different
43owl_prototypes.h: codelist.pl varstubs.c $(OBJS:.o=.c)
44        perl codelist.pl > owl_prototypes.h.new
45        @cmp -s owl_prototypes.h.new owl_prototypes.h || echo 'Interfaces changed!'
46        @cmp -s owl_prototypes.h.new owl_prototypes.h || mv -f owl_prototypes.h.new owl_prototypes.h
47
48tags:
49        etags *.[ch]
50
51*.o:: owl.h config.h owl_prototypes.h
Note: See TracBrowser for help on using the repository browser.