40 lines
1.7 KiB
Text
40 lines
1.7 KiB
Text
$NetBSD: patch-libraries_liblmdb_Makefile,v 1.5 2020/03/15 21:01:47 tnn Exp $
|
|
|
|
Use proper install commands.
|
|
|
|
--- libraries/liblmdb/Makefile.orig 2020-01-30 17:58:35.000000000 +0000
|
|
+++ libraries/liblmdb/Makefile
|
|
@@ -49,10 +49,10 @@ install: $(ILIBS) $(IPROGS) $(IHDRS)
|
|
mkdir -p $(DESTDIR)$(libdir)
|
|
mkdir -p $(DESTDIR)$(includedir)
|
|
mkdir -p $(DESTDIR)$(mandir)/man1
|
|
- for f in $(IPROGS); do cp $$f $(DESTDIR)$(bindir); done
|
|
- for f in $(ILIBS); do cp $$f $(DESTDIR)$(libdir); done
|
|
- for f in $(IHDRS); do cp $$f $(DESTDIR)$(includedir); done
|
|
- for f in $(IDOCS); do cp $$f $(DESTDIR)$(mandir)/man1; done
|
|
+ for f in $(IPROGS); do $(BSD_INSTALL_PROGRAM) $$f $(DESTDIR)$(prefix)/bin; done
|
|
+ for f in $(ILIBS); do $(BSD_INSTALL_LIB) $$f $(DESTDIR)$(prefix)/lib; done
|
|
+ for f in $(IHDRS); do $(BSD_INSTALL_DATA) $$f $(DESTDIR)$(prefix)/include; done
|
|
+ for f in $(IDOCS); do $(BSD_INSTALL_MAN) $$f $(DESTDIR)$(prefix)/$(PKGMANDIR)/man1; done
|
|
|
|
clean:
|
|
rm -rf $(PROGS) *.[ao] *.[ls]o *~ testdb
|
|
@@ -68,10 +68,14 @@ liblmdb$(SOEXT): mdb.lo midl.lo
|
|
# $(CC) $(LDFLAGS) -pthread -shared -Wl,-Bsymbolic -o $@ mdb.o midl.o $(SOLIBS)
|
|
$(CC) $(LDFLAGS) -pthread -shared -o $@ mdb.lo midl.lo $(SOLIBS)
|
|
|
|
-mdb_stat: mdb_stat.o liblmdb.a
|
|
-mdb_copy: mdb_copy.o liblmdb.a
|
|
-mdb_dump: mdb_dump.o liblmdb.a
|
|
-mdb_load: mdb_load.o liblmdb.a
|
|
+mdb_stat: mdb_stat.o liblmdb${SOEXT}
|
|
+ $(CC) $(LDFLAGS) $< -L. -llmdb -o $@
|
|
+mdb_copy: mdb_copy.o liblmdb${SOEXT}
|
|
+ $(CC) $(LDFLAGS) $< -L. -llmdb -o $@
|
|
+mdb_dump: mdb_dump.o liblmdb${SOEXT}
|
|
+ $(CC) $(LDFLAGS) $< -L. -llmdb -o $@
|
|
+mdb_load: mdb_load.o liblmdb${SOEXT}
|
|
+ $(CC) $(LDFLAGS) $< -L. -llmdb -o $@
|
|
mtest: mtest.o liblmdb.a
|
|
mtest2: mtest2.o liblmdb.a
|
|
mtest3: mtest3.o liblmdb.a
|