Browse Source

Add obsd

merge-requests/1/merge
Miloslav Ciz 5 months ago
parent
commit
c3a5d26169
3 changed files with 6 additions and 3 deletions
  1. BIN
      bin/Anarch_openbsd_sdl_1-02
  2. +2
    -0
      main_sdl.c
  3. +4
    -3
      make.sh

BIN
bin/Anarch_openbsd_sdl_1-02 View File


+ 2
- 0
main_sdl.c View File

@ -91,6 +91,8 @@
#define SDL_MAIN_HANDLED 1
#define SDL_DISABLE_IMMINTRIN_H 1
#include <stdio.h>
#include <unistd.h>
#include <SDL2/SDL.h>


+ 4
- 3
make.sh View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# Optional helper build script for Anarch.
# by drummyfish, released under CC0 1.0, public domain
@ -14,7 +14,7 @@ fi
clear; clear;
C_FLAGS='-x c -std=c99 -Wall -Wextra -fmax-errors=5 -pedantic -O3 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -o anarch'
C_FLAGS='-x c -std=c99 -Wall -Wextra -pedantic -O3 -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -o anarch'
COMPILER='g++'
@ -35,7 +35,8 @@ if [ $1 == "sdl" ]; then
# - g++
# - SDL2 (dev) package
COMMAND="${COMPILER} ${C_FLAGS} main_sdl.c -lSDL2"
SDL_FLAGS=`sdl2-config --libs --static-libs`
COMMAND="${COMPILER} ${C_FLAGS} main_sdl.c -I/usr/local/include ${SDL_FLAGS}"
echo ${COMMAND}


Loading…
Cancel
Save