source: Makefile.in @ 69894d2

barnowl_perlaimdebianowlrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 69894d2 was ac70242, checked in by James M. Kretchmar <kretch@mit.edu>, 19 years ago
Makefile.in: define DATADIR, for default owlconf. Makefile.in: provide "all" and "install" rules. configure.in: try also libdes and libkrb4, for people using heimdal configure.in: see if des_ecb_encrypt is already prototyped. configure.in: minor changes to work with new autoconf without needing acconfig.h. configure.in: find the install program. configure.in: test for use_default_colors since some versions of solaris don't have it, so we can at least compile something vaguely working there. keypress.c: ifdefs for keys not defined on at least some solarises. owl.c: don't call use_default_colors if we don't have it readconfig.c: added *commented out* code to try to find a system-default owlconf if the user doesn't have one. Have to ponder if I want this zcrypt.c: don't prototype des_ecb_encrypt if there is a prototype in des.h. zcrypt.c: include owl.h so we get the configure-generated config.h Change to codelist.pl to deal with new code style
  • Property mode set to 100644
File size: 1.9 KB
Line 
1
2# $Id$
3
4srcdir = @srcdir@
5VPATH = @srcdir@
6
7prefix = @prefix@
8exec_prefix = @exec_prefix@
9
10datadir = @datadir@
11bindir = @bindir@
12mandir = @mandir@
13
14CC=@CC@
15LIBS=@LIBS@
16#CFLAGS=@CFLAGS@ @DEFS@
17CFLAGS=@CFLAGS@ -DDATADIR=\"${datadir}\"
18LDFLAGS=@LDFLAGS@
19XSUBPPDIR=@XSUBPPDIR@
20INSTALL = @INSTALL@
21INSTALL_PROGRAM = @INSTALL_PROGRAM@
22INSTALL_DATA = @INSTALL_DATA@
23
24OBJS=list.o message.o mainwin.o popwin.o zephyr.o messagelist.o commands.o \
25     global.o text.o fmtext.o editwin.o util.o logging.o readconfig.o keys.o \
26     functions.o zwrite.o viewwin.o help.o filter.o regex.o history.o view.o \
27     dict.o variable.o varstubs.o filterelement.o pair.o \
28     keypress.o keymap.o keybinding.o cmd.o context.o perlglue.o zcrypt.o
29
30AUTOGEN=owl_prototypes.h varstubs.c perlglue.c
31
32owl: $(AUTOGEN) $(OBJS) owl.o
33        ./athstatic $(CC) -o owl owl.o $(OBJS) $(LDFLAGS) $(LIBS)
34
35tester: $(AUTOGEN) $(OBJS) tester.o
36        $(CC) -o tester tester.o $(OBJS) $(LDFLAGS) $(LIBS)
37
38test: tester
39        ./tester reg
40
41clean:
42        $(RM) owl tester *.o $(AUTOGEN) owl_prototypes.h.new
43
44distclean: clean
45        $(RM) config.cache config.log config.status Makefile config.h TAGS *~ core
46
47proto: owl_prototypes.h
48
49perlglue.c: perlglue.xs
50        perl $(XSUBPPDIR)/xsubpp -typemap $(XSUBPPDIR)/typemap -prototypes perlglue.xs > perlglue.c
51
52varstubs.c: variable.c stubgen.pl
53        perl stubgen.pl > varstubs.c
54
55all: owl
56
57install: all installdirs
58        ${INSTALL_PROGRAM} owl ${bindir}/owl
59        ${INSTALL_DATA} doc/owl.1 ${mandir}/man1/owl.1
60
61installdirs: mkinstalldirs
62        ${srcdir}/mkinstalldirs ${bindir} ${mandir}/man1 ${datadir}/owl
63
64# Only move owl_prototypes.h into place if the new one is different
65owl_prototypes.h: codelist.pl varstubs.c $(OBJS:.o=.c)
66        perl codelist.pl | grep -v ZWRITEOPTIONS > owl_prototypes.h.new
67        @cmp -s owl_prototypes.h.new owl_prototypes.h || echo 'Interfaces changed!'
68        @cmp -s owl_prototypes.h.new owl_prototypes.h || mv -f owl_prototypes.h.new owl_prototypes.h
69
70tags:
71        etags *.[ch]
72
73*.o:: owl.h config.h owl_prototypes.h
Note: See TracBrowser for help on using the repository browser.