patch-base_runtime_objs_mk_ppc-openbsd 963 B

123456789101112131415161718192021222324252627282930313233
  1. $OpenBSD: patch-base_runtime_objs_mk_ppc-openbsd,v 1.3 2016/08/11 11:34:13 jca Exp $
  2. Add support for OpenBSD/powerpc.
  3. --- base/runtime/objs/mk.ppc-openbsd.orig Thu Aug 11 12:40:29 2016
  4. +++ base/runtime/objs/mk.ppc-openbsd Thu Aug 11 12:57:49 2016
  5. @@ -0,0 +1,25 @@
  6. +# mk.ppc-openbsd
  7. +#
  8. +# makefile for OpenBSD (version 4.x), which is a BSD 4.4 clone.
  9. +#
  10. +
  11. +SHELL = /bin/sh
  12. +
  13. +MAKE = gmake
  14. +
  15. +ARFLAGS = Trcv
  16. +CC ?= gcc -ansi
  17. +CFLAGS ?= -O2
  18. +CPP = ${CC} -x assembler-with-cpp -E -P
  19. +
  20. +XOBJS =
  21. +XLIBS = ../c-libs/dl/libunix-dynload.a
  22. +LD_LIBS = -Wl,-z,wxneeded
  23. +BASE_DEFS =
  24. +DEFS = $(XDEFS) $(BASE_DEFS) -DHOST_PPC -DTARGET_PPC -DOPSYS_UNIX -DOPSYS_OPENBSD -DDLOPEN
  25. +TARGET = PPC
  26. +VERSION = v-ppc-openbsd
  27. +RUNTIME = run.ppc-openbsd
  28. +
  29. +all:
  30. + ($(MAKE) RUNTIME="$(RUNTIME)" VERSION="$(VERSION)" MAKE="$(MAKE)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP="$(CPP)" TARGET=$(TARGET) DEFS="$(DEFS)" XOBJS="$(XOBJS)" XLIBS="$(XLIBS)" LD_LIBS="$(LD_LIBS)" $(RUNTIME))