This commit is contained in:
Miloslav Ciz 2021-05-28 23:35:52 +02:00
parent 1ec760343d
commit c3a5d26169
3 changed files with 6 additions and 3 deletions

BIN
bin/Anarch_openbsd_sdl_1-02 Executable file

Binary file not shown.

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>

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}