patch-third_party_bnlib_Makefile_in 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. $OpenBSD: patch-third_party_bnlib_Makefile_in,v 1.3 2017/05/13 01:52:38 espie Exp $
  2. Index: third_party/bnlib/Makefile.in
  3. --- third_party/bnlib/Makefile.in.orig
  4. +++ third_party/bnlib/Makefile.in
  5. @@ -41,12 +41,9 @@ all: $(BNLIB) bntest32.c bntest64.c
  6. # for libzrtp support
  7. install: all
  8. - test -d /usr/local/include/libzrtp || mkdir /usr/local/include/libzrtp
  9. - cp *.h /usr/local/include/libzrtp
  10. - cp 'libbn.a' '/usr/local/lib/libbn.a'
  11. - chmod 644 /usr/local/lib/libbn.a
  12. - chown 0:0 /usr/local/lib/libbn.a
  13. - $(RANLIB) '/usr/local/lib/libbn.a'
  14. + ${BSD_INSTALL_DATA_DIR} ${PREFIX}/include/libzrtp
  15. + ${BSD_INSTALL_DATA} *.h ${PREFIX}/include/libzrtp
  16. + ${RANLIB} libbn.a
  17. # for libzrtp support
  18. #check: bntest
  19. @@ -60,9 +57,11 @@ germtest: germtest.o $(BNLIB)
  20. $(LD) $(LDFLAGS) -o $@ germtest.o $(BNLIB) $(LIBS)
  21. $(BNLIB): $(OBJS)
  22. - $(AR) r $@ $?
  23. + $(AR) $(ARFLAGS) $@ $?
  24. $(RANLIB) $@
  25. +GCCMAGIC1=@GCCMAGIC1@
  26. +GCCMAGIC2=@GCCMAGIC2@
  27. # Here we get tricky... if we're compiling with GCC, then GCCMAGIC1 and
  28. # GCCMAGIC2 are set so that we actually do a link, but with the -r flag
  29. # (produce relocatable output) and with -lgcc *only*. This is so that
  30. @@ -72,16 +71,16 @@ $(BNLIB): $(OBJS)
  31. # support-library function.
  32. lbn00.o: $(srcdir)/lbn00.c $(HDRS) bnconfig.h
  33. - $(CC) $(CPPFLAGS) $(CFLAGS) -I. -I$(srcdir) -o $@ @GCCMAGIC1@ lbn00.c @GCCMAGIC2@
  34. + $(CC) $(CPPFLAGS) $(CFLAGS) -I. -I$(srcdir) -o $@ ${GCCMAGIC1} lbn00.c ${GCCMAGIC2}
  35. lbn16.o: $(srcdir)/lbn16.c $(HDRS) bnconfig.h
  36. - $(CC) $(CPPFLAGS) $(CFLAGS) -I. -I$(srcdir) -o $@ @GCCMAGIC1@ lbn16.c @GCCMAGIC2@
  37. + $(CC) $(CPPFLAGS) $(CFLAGS) -I. -I$(srcdir) -o $@ ${GCCMAGIC1} lbn16.c ${GCCMAGIC2}
  38. lbn32.o: $(srcdir)/lbn32.c $(HDRS) bnconfig.h
  39. - $(CC) $(CPPFLAGS) $(CFLAGS) -I. -I$(srcdir) -o $@ @GCCMAGIC1@ lbn32.c @GCCMAGIC2@
  40. + $(CC) $(CPPFLAGS) $(CFLAGS) -I. -I$(srcdir) -o $@ ${GCCMAGIC1} lbn32.c ${GCCMAGIC2}
  41. lbn64.o: $(srcdir)/lbn64.c $(HDRS) bnconfig.h
  42. - $(CC) $(CPPFLAGS) $(CFLAGS) -I. -I$(srcdir) -o $@ @GCCMAGIC1@ lbn64.c @GCCMAGIC2@
  43. + $(CC) $(CPPFLAGS) $(CFLAGS) -I. -I$(srcdir) -o $@ ${GCCMAGIC1} lbn64.c ${GCCMAGIC2}
  44. # The default .o rule.
  45. .c.o: bnconfig.h