patch-config_mk 1.0 KB

12345678910111213141516171819202122232425262728
  1. $OpenBSD: patch-config_mk,v 1.1 2007/12/07 15:54:56 ajacoutot Exp $
  2. --- config.mk.orig Sun Mar 23 00:08:58 2003
  3. +++ config.mk Fri Dec 7 14:50:49 2007
  4. @@ -34,7 +34,7 @@ TARGETS = xevil
  5. # You can add -DNDEBUG to speed up a release build by removing the assert()
  6. # calls. But, on a really obscure Linux machine, this caused Xlib to blow up
  7. # internally, so you do so at your own risk.
  8. -DEBUG_OPT = -O #-DNDEBUG
  9. +DEBUG_OPT = # -O -DNDEBUG
  10. LINK_OPT =
  11. @@ -168,7 +168,14 @@ OBJ_DIR=$(DEPTH)/x11/FREEBSD PCKG_NAME="freebsd" \
  12. LIBS="-lXpm -lX11 -lm" $(TARGETS)
  13. +openbsd:
  14. + @$(MAKE) CC="${CXX}" \
  15. +CFLAGS="-DUSE_RANDOM -DUSE_UINT_NET_LENGTH -DUNAME_USR_BIN ${CXXFLAGS}" \
  16. +INCL_DIRS="-I$(X11BASE)/include" LIBS_DIRS="-L$(X11BASE)/lib" \
  17. +OBJ_DIR=$(DEPTH)/x11/OPENBSD PCKG_NAME="openbsd" \
  18. +LIBS="-lXpm -lX11 -lm" $(TARGETS)
  19. +
  20. hp700:
  21. @$(MAKE) CC="g++" LIBS="-lXpm -lX11 -lm" INCL_DIRS="" CFLAGS="-DUSE_RANDOM -DRANDOM_NEEDS_PROTOTYPES -DMATH_H_IS_CC -DPROTECTED_IS_PUBLIC" \
  22. $(TARGETS)