INSTALL (1051B)
1 Prerequisites 2 ============= 3 4 * C compiler - defaults in config.mk 5 * libSDL v3 (SDL3, SDL3_image - as of 2025-07, build from source: 6 https://github.com/libsdl-org/SDL 7 https://github.com/libsdl-org/SDL_image 8 Confirmed as needed in OpenBSD and Alpine) 9 10 11 Install 12 ------- 13 14 $ git clone https://git.sr.ht/~strahinja/linije 15 $ cd linije 16 $ su 17 # make install 18 19 20 Persistent build configuration file 21 ----------------------------------- 22 23 The file config.mk will be sourced when building targets which also accept 24 configuration through environment variables. For example, CPPFLAGS and PREFIX 25 are specified in config.mk. 26 27 28 OpenBSD 29 ------- 30 31 Before running make(1), comment the _CPPFLAGS and INCLUDE definitions in 32 config.mk above the line with the "OpenBSD" comment and uncomment the ones below 33 it: 34 35 #_CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \ 36 # -D_XOPEN_SOURCE=700 37 #INCLUDE = -I/usr/include 38 # OpenBSD 39 _CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \ 40 -D_XOPEN_SOURCE=700 -D_BSD_SOURCE 41 INCLUDE = -I/usr/local/include