rse         98/03/13 00:15:27

  Modified:    src/support Makefile.tmpl
  Log:
  Fix support Makefile:
  
  - OBJS needs to be declared manually here, because Configure
    does not set it but our `$(OBJS): Makefile' dependency
    line needs OBJS to be defined. If not at least HP/UX make
    complains.
  
  - consistently use $(LDFLAGS) and $(LIBS) even if not
    really needed for rotatelogs
  
  - move TARGETS define in front of the targets itsself
    because some Make variants don't like defines in the
    middle of the targets section
  
  Revision  Changes    Path
  1.10      +5 -3      apache-1.3/src/support/Makefile.tmpl
  
  Index: Makefile.tmpl
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/support/Makefile.tmpl,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Makefile.tmpl     1998/02/22 04:37:20     1.9
  +++ Makefile.tmpl     1998/03/13 08:15:26     1.10
  @@ -9,11 +9,13 @@
   LDFLAGS=$(LDFLAGS1) $(EXTRA_LDFLAGS) -L../ap
   INCDIR=../include
   
  +TARGETS=htpasswd htdigest rotatelogs logresolve
  +
  +OBJS=htpasswd.o htdigest.o rotatelogs.o logresolve.o
  +
   .c.o: 
        $(CC) -c $(CFLAGS) $(INCLUDES) $<
   
  -TARGETS=htpasswd htdigest rotatelogs logresolve
  -
   all: $(TARGETS)
   
   htpasswd: htpasswd.o
  @@ -23,7 +25,7 @@
        $(CC) $(CFLAGS) htdigest.o -o htdigest $(LDFLAGS) $(LIBS)
   
   rotatelogs: rotatelogs.o
  -     $(CC) $(INCLUDES) $(CFLAGS) rotatelogs.o -o rotatelogs
  +     $(CC) $(INCLUDES) $(CFLAGS) rotatelogs.o -o rotatelogs $(LDFLAGS) 
$(LIBS)
   
   logresolve: logresolve.o
        $(CC) $(INCLUDES) $(CFLAGS) logresolve.o -o logresolve $(LDFLAGS) 
$(LIBS)
  
  
  

Reply via email to