1998-12-29 19:16:38 +00:00
|
|
|
--- Makefile.orig Thu Jul 3 04:48:00 1997
|
|
|
|
+++ Makefile Tue Dec 29 11:15:04 1998
|
1998-01-29 21:59:51 +00:00
|
|
|
@@ -3,15 +3,16 @@
|
1997-01-07 12:20:48 +00:00
|
|
|
|
|
|
|
# Modify the below to suit your filesystem
|
|
|
|
|
|
|
|
-INSTALLDIR=/usr/local/bin
|
|
|
|
-LIBDIR=/usr/local/lib
|
|
|
|
-MANDIR=/usr/local/man/man1
|
|
|
|
+PREFIX?=/usr/local
|
|
|
|
+INSTALLDIR=${PREFIX}/bin
|
|
|
|
+LIBDIR=${PREFIX}/lib
|
|
|
|
+MANDIR=${PREFIX}/man/man1
|
|
|
|
|
1998-12-29 19:16:38 +00:00
|
|
|
-#CC=cc
|
|
|
|
-CC=gcc
|
|
|
|
+CC?=cc
|
|
|
|
+#CC=gcc
|
1998-01-29 21:59:51 +00:00
|
|
|
|
|
|
|
#FLAGS=-O -nointl # SCO
|
|
|
|
-FLAGS= -O -g -Wall
|
|
|
|
+FLAGS= -O -Wall
|
|
|
|
|
|
|
|
#LIBS= -lnsl -lsocket # SYSVR4 / SOLARIS
|
|
|
|
#LIBS= -lsocket -lmalloc -lc_s # SCO
|
1998-12-29 19:16:38 +00:00
|
|
|
@@ -31,7 +32,7 @@
|
|
|
|
-DSTROBE_SERVICES='"$(DATA)"'\
|
|
|
|
-DETC_SERVICES='"$(ETC_SERVICES)"'
|
|
|
|
|
|
|
|
-CFLAGS=$(FLAGS) $(DEFS)
|
|
|
|
+CFLAGS+=$(DEFS)
|
|
|
|
|
|
|
|
$(BIN): $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) -o $(BIN) $(OBJS) $(LIBS)
|
1997-01-07 12:20:48 +00:00
|
|
|
@@ -40,13 +41,13 @@
|
|
|
|
$(MAN):
|
|
|
|
$(INSTALLDIR)/$(BIN): $(BIN)
|
|
|
|
-rm -f $(INSTALLDIR)/$(BIN)
|
|
|
|
- install -m 755 -s $(BIN) $(INSTALLDIR)/$(BIN)
|
|
|
|
+ install -c -o bin -g bin -m 755 -s $(BIN) $(INSTALLDIR)/$(BIN)
|
|
|
|
$(LIBDIR)/$(DATA): $(DATA)
|
|
|
|
-rm -f $(LIBDIR)/$(DATA)
|
|
|
|
- install -m 644 $(DATA) $(LIBDIR)/$(DATA)
|
|
|
|
+ install -c -o bin -g bin -m 644 $(DATA) $(LIBDIR)/$(DATA)
|
|
|
|
$(MANDIR)/$(MAN): $(MAN)
|
|
|
|
-rm -f $(MANDIR)/$(MAN)
|
|
|
|
- install -m 644 $(MAN) $(MANDIR)/$(MAN)
|
|
|
|
+ install -c -o bin -g bin -m 644 $(MAN) $(MANDIR)/$(MAN)
|
|
|
|
install: $(INSTALLDIR)/$(BIN) $(LIBDIR)/$(DATA) $(MANDIR)/$(MAN)
|
|
|
|
strobe.man : $(MAN)
|
|
|
|
nroff -man -Tascii $(MAN) > strobe.man
|