JohnEarnest/Decker

Changes needed to Makefile and scripts for OpenBSD

alexshendi opened this issue · 2 comments

  1. The scripts in scripts/*.sh: Change first line from "#!/bin/bash" to "#!/usr/bin/env bash".
  2. Add the following section to Makefile (e.g. after line 4):
ifeq ($(UNAME),OpenBSD)
	OPEN=xdg-open
	COMPILER=clang
	FLAGS=-Wall -Werror -Wextra -Wpedantic -O2
	# -Wno-misleading-indentation silences warnings which are entirely spurious.
	FLAGS:=$(FLAGS) -Wno-misleading-indentation -Wno-unknown-warning-option
	FLAGS:=$(FLAGS) -lm
	# FLAGS:=$(FLAGS) -fsanitize=undefined
	# FLAGS:=$(FLAGS) -fsanitize=address
endif

Packages needed:

  • gmake
  • sdl2
  • sdl2-image
  • vim (for xxd)

I only tried "native" decker.

Seems straightforward. How's that? (see above)