INSTALL (1109B)
1 Prerequisites 2 ============= 3 4 * C compiler - defaults in config.mk 5 6 7 Optional dependencies 8 --------------------- 9 10 * git (for {git-log}) 11 12 13 Install 14 ------- 15 16 $ git clone https://git.sr.ht/~strahinja/slw2gmi 17 $ cd slw2gmi 18 $ su 19 # make install 20 21 With got[1]: 22 23 $ got clone https://git.sr.ht/~strahinja/slw2gmi 24 $ got checkout slw2gmi.git 25 $ cd slw2gmi 26 $ su 27 # make install 28 29 30 Persistent build configuration file 31 ----------------------------------- 32 33 The file config.mk will be sourced when building targets which also accept 34 configuration through environment variables. For example, CPPFLAGS and PREFIX 35 are specified in config.mk. 36 37 38 OpenBSD 39 ------- 40 41 Before running make(1), comment the CPPFLAGS definition in config.mk above the 42 line with the "OpenBSD" comment and uncomment the one below it: 43 44 #CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \ 45 # -D_XOPEN_SOURCE=700 46 # OpenBSD 47 CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \ 48 -D_XOPEN_SOURCE=700 -D_BSD_SOURCE 49 50 Also, do the same for MANPREFIX: 51 52 #MANPREFIX = $(DESTDIR)$(PREFIX)/share/man 53 # OpenBSD 54 MANPREFIX = $(DESTDIR)$(PREFIX)/man