M INSTALL => INSTALL +5 -2
@@ 25,11 25,14 @@ are specified in config.mk.
OpenBSD
-------
-Before running make(1), comment the _CPPFLAGS definition in config.mk above the
-line with the "OpenBSD" comment and uncomment the one below it:
+Before running make(1), comment the _CPPFLAGS and INCLUDE definitions in
+config.mk above the line with the "OpenBSD" comment and uncomment the ones below
+it:
#_CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
# -D_XOPEN_SOURCE=700
+ #INCLUDE = -I/usr/include/SDL2
# OpenBSD
_CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
-D_XOPEN_SOURCE=700 -D_BSD_SOURCE
+ INCLUDE = -I$/usr/local/include/SDL2
M config.mk => config.mk +3 -2
@@ 2,10 2,11 @@
CFLAGS = -Os -Wall -pedantic -std=c99
_CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
-D_XOPEN_SOURCE=700
+INCLUDE = -I/usr/include/SDL2
# OpenBSD
#_CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
# -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
-INCLUDE = -I/usr/local/include/SDL2
+#INCLUDE = -I$/usr/local/include/SDL2
INSTALL = install
LIBS = -lSDL2_image -lSDL2 -lm
SRC = lav-sdl.c
@@ 18,7 19,7 @@ PROG = lav-sdl
BINDIR = $(PREFIX)/bin
CPPFLAGS = $(_CPPFLAGS) $(INCLUDE)
DATADIR = $(PREFIX)/share/$(PROG)
-#DOCDIR = $(PREFIX)/share/doc/$(PROG)
+DOCDIR = $(PREFIX)/share/doc/$(PROG)
#MANPREFIX = $(PREFIX)/share/man
# OpenBSD
#MANPREFIX = $(PREFIX)/man