source: Makefile.in @ 1aee7d9

barnowl_perlaimdebianowlrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 1aee7d9 was 1aee7d9, checked in by Erik Nygren <nygren@mit.edu>, 18 years ago
* Added RCS Id strings to all files. * 'show keymaps' shows details of all keymaps after summary list.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1
2# $Id$
3
4CC=@CC@
5LIBS=@LIBS@
6#CFLAGS=@CFLAGS@ @DEFS@
7CFLAGS=@CFLAGS@
8LDFLAGS=@LDFLAGS@
9
10OBJS=list.o message.o mainwin.o popwin.o zephyr.o messagelist.o commands.o \
11     global.o text.o fmtext.o editwin.o util.o logging.o readconfig.o keys.o \
12     functions.o zwrite.o viewwin.o help.o filter.o regex.o history.o view.o \
13     dict.o variable.o varstubs.o filterelement.o \
14     keypress.o keymap.o keybinding.o cmd.o context.o
15
16AUTOGEN=owl_prototypes.h varstubs.c
17
18owl: $(AUTOGEN) $(OBJS) owl.o
19        $(CC) -o owl owl.o $(OBJS) $(LDFLAGS) $(LIBS)
20
21tester: $(AUTOGEN) $(OBJS) tester.o
22        $(CC) -o tester tester.o $(OBJS) $(LDFLAGS) $(LIBS)
23
24test: tester
25        ./tester reg
26
27clean:
28        $(RM) *~ *.o owl tester core $(AUTOGEN) owl_prototypes.h.new
29
30distclean: clean
31        $(RM) config.cache config.log config.status Makefile config.h TAGS
32
33proto: owl_prototypes.h
34
35
36varstubs.c: variable.c stubgen.pl
37        perl stubgen.pl > varstubs.c
38
39# Only move owl_prototypes.h into place if the new one is different
40owl_prototypes.h: codelist.pl varstubs.c $(OBJS:.o=.c)
41        perl codelist.pl > owl_prototypes.h.new
42        @cmp -s owl_prototypes.h.new owl_prototypes.h || echo 'Interfaces changed!'
43        @cmp -s owl_prototypes.h.new owl_prototypes.h || mv -f owl_prototypes.h.new owl_prototypes.h
44
45tags:
46        etags *.[ch]
47
48*.o:: owl.h config.h owl_prototypes.h
Note: See TracBrowser for help on using the repository browser.