openbsd-ports/net/tcpslice/patches/patch-Makefile_in

37 lines
1.1 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-Makefile_in,v 1.2 2006/04/02 14:45:10 sturm Exp $
--- Makefile.in.orig Sun Sep 10 10:54:27 2000
+++ Makefile.in Sun Apr 2 13:24:32 2006
@@ -41,8 +41,8 @@ VPATH = @srcdir@
CC = @CC@
PROG = tcpslice
-CCOPT = @V_CCOPT@
-INCLS = -I. @V_INCLS@
+CCOPT = @CFLAGS@
+INCLS = -I. -I$(srcdir) -I$(srcdir)/lbl
DEFS = @DEFS@
# Standard CFLAGS
@@ -59,9 +59,9 @@ INSTALL = @INSTALL@
# Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
# Also, gcc does not remove the .o before forking 'as', which can be a
# problem if you don't own the file but can write to the directory.
-.c.o:
- @rm -f $@
- $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+#.c.o:
+# @rm -f $@
+# $(CC) $(CFLAGS) -c $(srcdir)/$*.c
CSRC = tcpslice.c gmt2local.c gwtm2secs.c machdep.c search.c util.c
GENSRC = version.c
@@ -97,7 +97,7 @@ version.c: $(srcdir)/VERSION
sed -e 's/.*/char version[] = "&";/' $(srcdir)/VERSION > $@
install: force
- $(INSTALL) -m 555 -o bin -g bin tcpslice $(DESTDIR)$(BINDEST)
+ $(INSTALL) -s -m 555 -o root -g bin tcpslice $(DESTDIR)$(BINDEST)
install-man: force
$(INSTALL) -m 444 -o bin -g bin $(srcdir)/$(PROG).1 \