Changeset aaf6071


Ignore:
Timestamp:
Apr 20, 2003, 1:10:17 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
f87c490
Parents:
4594d83
Message:
General cleanup to Makefile.in
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r69894d2 raaf6071  
    22
    332.0.1-pre-1
    4         Moved the (broken) newmsgproc stuff to a function procedure
     4        Moved newmsgproc stuff to a function procedure
    55        Added the 'newlinestrip' variable, on by default, that strips
    66          leading and trailing newlines from incoming messages.
     
    6464        Change to codelist.pl to deal with new code style
    6565        Remove some ancient stuff from zcrypt.c
     66        General cleanup to Makefile.in
    6667       
    67681.2.8
  • Makefile.in

    rac70242 raaf6071  
    1 
    21# $Id$
    32
    43srcdir = @srcdir@
    54VPATH = @srcdir@
    6 
    75prefix = @prefix@
    86exec_prefix = @exec_prefix@
    9 
    107datadir = @datadir@
    118bindir = @bindir@
     
    1411CC=@CC@
    1512LIBS=@LIBS@
    16 #CFLAGS=@CFLAGS@ @DEFS@
    1713CFLAGS=@CFLAGS@ -DDATADIR=\"${datadir}\"
    1814LDFLAGS=@LDFLAGS@
    1915XSUBPPDIR=@XSUBPPDIR@
    20 INSTALL = @INSTALL@
    21 INSTALL_PROGRAM = @INSTALL_PROGRAM@
    22 INSTALL_DATA = @INSTALL_DATA@
     16INSTALL=@INSTALL@
     17INSTALL_PROGRAM=@INSTALL_PROGRAM@
     18INSTALL_DATA=@INSTALL_DATA@
    2319
    24 OBJS=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
     20BASE_SRCS=list.c message.c mainwin.c popwin.c zephyr.c messagelist.c \
     21     commands.c global.c text.c fmtext.c editwin.c util.c logging.c \
     22     readconfig.c keys.c functions.c zwrite.c viewwin.c help.c filter.c \
     23     regex.c history.c view.c dict.c variable.c filterelement.c pair.c \
     24     keypress.c keymap.c keybinding.c cmd.c context.c zcrypt.c
     25OWL_SRC = owl.c
     26TESTER_SRC = tester.c
    2927
    30 AUTOGEN=owl_prototypes.h varstubs.c perlglue.c
     28BASE_OBJS = $(BASE_SRCS:.c=.o)
     29
     30GEN_C = varstubs.c perlglue.c
     31GEN_H = owl_prototypes.h
     32GEN_O = $(GEN_C:.c=.o)
     33
     34OBJS = $(BASE_OBJS) $(GEN_O)
     35
     36AUTOGEN=$(GEN_C) $(GEN_H)
     37
    3138
    3239owl: $(AUTOGEN) $(OBJS) owl.o
    3340        ./athstatic $(CC) -o owl owl.o $(OBJS) $(LDFLAGS) $(LIBS)
    3441
    35 tester: $(AUTOGEN) $(OBJS) tester.o
     42tester: $(OBJS) tester.o
    3643        $(CC) -o tester tester.o $(OBJS) $(LDFLAGS) $(LIBS)
    3744
     
    5360        perl stubgen.pl > varstubs.c
    5461
     62# Only move owl_prototypes.h into place if the new one is different
     63owl_prototypes.h: codelist.pl varstubs.c $(BASE_SRCS)
     64        perl codelist.pl | grep -v ZWRITEOPTIONS > owl_prototypes.h.new
     65        @cmp -s owl_prototypes.h.new $@ || { \
     66         echo 'Interfaces changed!'; \
     67         echo mv -f owl_prototypes.h.new $@; \
     68              mv -f owl_prototypes.h.new $@; }
     69
     70.PHONY: tags clean distclean proto test
     71
     72tags: TAGS
     73
     74TAGS: $(BASE_SRCS) $(OWL_SRC) $(TESTER_SRC) $(GEN_C) owl.h $(GEN_H)
     75        etags $(BASE_SRCS) $(OWL_SRC) $(TESTER_SRC) $(GEN_C) owl.h $(GEN_H)
     76
     77$(BASE_OBJS) varstubs.h:: owl.h config.h owl_prototypes.h
     78
    5579all: owl
    5680
     
    5983        ${INSTALL_DATA} doc/owl.1 ${mandir}/man1/owl.1
    6084
     85
    6186installdirs: mkinstalldirs
    6287        ${srcdir}/mkinstalldirs ${bindir} ${mandir}/man1 ${datadir}/owl
    63 
    64 # Only move owl_prototypes.h into place if the new one is different
    65 owl_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 
    70 tags:
    71         etags *.[ch]
    72 
    73 *.o:: owl.h config.h owl_prototypes.h
Note: See TracChangeset for help on using the changeset viewer.