HardenedBSD/contrib/global/btreeop/Makefile.generic

21 lines
412 B
Makefile
Raw Normal View History

PROG = btreeop
CC = gcc
1997-12-16 00:08:46 +01:00
LIBS = -L../lib -lutil -ldb
CFLAGS = -O -I../lib -I/usr/include/db
DEPLIBS= ../lib/libutil.a
OBJS = btreeop.o
BINDIR = /usr/bin
1997-12-16 00:08:46 +01:00
MANDIR = /usr/man
all: $(PROG)
1997-12-16 00:08:46 +01:00
$(PROG): $(OBJS) $(DEPLIBS)
$(CC) -o $(PROG) $(OBJS) $(LIBS)
install:
cp $(PROG) $(BINDIR)
chmod 755 $(BINDIR)/$(PROG)
cp $(PROG).1 $(MANDIR)/man1
chmod 644 $(MANDIR)/man1/$(PROG).1
clean:
1997-12-16 00:08:46 +01:00
rm -f $(PROG) $(OBJS)