patch-build_generic_Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. $OpenBSD: patch-build_generic_Makefile,v 1.5 2014/09/19 01:44:46 brad Exp $
  2. --- build/generic/Makefile.orig Tue Apr 8 16:41:05 2014
  3. +++ build/generic/Makefile Tue Sep 2 16:44:15 2014
  4. @@ -46,6 +46,7 @@ include platform.inc
  5. endif
  6. RM = rm -rf
  7. +INSTALL = install -c
  8. ##############################################################################
  9. #
  10. @@ -94,7 +95,7 @@ $(BUILD_DIR):
  11. .$(ASSEMBLY_EXTENSION).$(OBJECT_EXTENSION):
  12. @echo " A: $(@D)/$(<F)"
  13. @$(INSTALL) -d $(BUILD_DIR)/$(@D)
  14. - @$(AS) $(AFLAGS) $< -o $(BUILD_DIR)/$@
  15. + $(AS) $(AFLAGS) $< -o $(BUILD_DIR)/$@
  16. #-----------------------------------------------------------------------------
  17. # Generic C rule
  18. @@ -105,7 +106,7 @@ $(PPC_ALTIVEC_OBJECTS): CFLAGS+= $(ALTIVEC_CFLAGS)
  19. .c.$(OBJECT_EXTENSION):
  20. @echo " C: $(@D)/$(<F)"
  21. @$(INSTALL) -d $(BUILD_DIR)/$(@D)
  22. - @$(CC) -c $(ARCHITECTURE) $(BUS) $(ENDIANNESS) $(FEATURES) $(SPECIFIC_CFLAGS) $(CFLAGS) $< -o $(BUILD_DIR)/$@
  23. + $(CC) -c $(ARCHITECTURE) $(BUS) $(ENDIANNESS) $(FEATURES) $(SPECIFIC_CFLAGS) $(CFLAGS) $< -o $(BUILD_DIR)/$@
  24. #-----------------------------------------------------------------------------
  25. # Static Library
  26. @@ -113,7 +114,7 @@ $(PPC_ALTIVEC_OBJECTS): CFLAGS+= $(ALTIVEC_CFLAGS)
  27. $(STATIC_LIB): $(BUILD_DIR) $(OBJECTS)
  28. @echo " L: $(@F)"
  29. - @cd $(BUILD_DIR) && $(AR) rc $(@F) $(OBJECTS) && $(RANLIB) $(@F)
  30. + cd $(BUILD_DIR) && $(AR) rc $(@F) $(OBJECTS) && $(RANLIB) $(@F)
  31. #-----------------------------------------------------------------------------
  32. # Shared Library
  33. @@ -134,7 +135,7 @@ $(SHARED_LIB): $(BUILD_DIR) $(OBJECTS)
  34. @echo " L: $(@F)"
  35. @$(INSTALL) -m 644 libxvidcore.def $(BUILD_DIR)/libxvidcore.def
  36. @$(INSTALL) -m 644 libxvidcore.ld $(BUILD_DIR)/libxvidcore.ld
  37. - @cd $(BUILD_DIR) && $(CC) $(LDFLAGS) $(OBJECTS) -o $(PRE_SHARED_LIB) $(SPECIFIC_LDFLAGS)
  38. + cd $(BUILD_DIR) && $(CC) $(LDFLAGS) $(OBJECTS) -o $(PRE_SHARED_LIB) $(SPECIFIC_LDFLAGS)
  39. #-----------------------------------------------------------------------------
  40. # Installation