mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-21 23:08:49 -05:00
Add obsd
This commit is contained in:
parent
1ec760343d
commit
c3a5d26169
BIN
bin/Anarch_openbsd_sdl_1-02
Executable file
BIN
bin/Anarch_openbsd_sdl_1-02
Executable file
Binary file not shown.
@ -91,6 +91,8 @@
|
|||||||
|
|
||||||
#define SDL_MAIN_HANDLED 1
|
#define SDL_MAIN_HANDLED 1
|
||||||
|
|
||||||
|
#define SDL_DISABLE_IMMINTRIN_H 1
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
|
7
make.sh
7
make.sh
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
# Optional helper build script for Anarch.
|
# Optional helper build script for Anarch.
|
||||||
# by drummyfish, released under CC0 1.0, public domain
|
# by drummyfish, released under CC0 1.0, public domain
|
||||||
@ -14,7 +14,7 @@ fi
|
|||||||
|
|
||||||
clear; clear;
|
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++'
|
COMPILER='g++'
|
||||||
|
|
||||||
@ -35,7 +35,8 @@ if [ $1 == "sdl" ]; then
|
|||||||
# - g++
|
# - g++
|
||||||
# - SDL2 (dev) package
|
# - 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}
|
echo ${COMMAND}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user