source: Makefile.in @ 7d4fbcd

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