чување c3282966353a5b4e57913c1e25777bd6b9afade7
родитељ 7eee8c076b95d5fc7673b69b373f8de9f3c90dc6
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Fri, 15 Mar 2024 21:52:37 +0100
config.mk: Split CFLAGS -> CFLAGS+CPPFLAGS; -g -> -Os; comment out CC by
default; INSTALL: Revise OpenBSD section, remove gzip optional requirement
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 3, додавања: 11(+), брисања: 18(-)
diff --git a/INSTALL b/INSTALL
@@ -4,12 +4,6 @@ Prerequisites
* C compiler - defaults in config.mk
-Optional
---------
-
-* gzip (autodetected, for manpage compression)
-
-
Install
-------
@@ -30,15 +24,14 @@ are specified in config.mk.
OpenBSD
-------
-Before running make(1), comment the CFLAGS definition in config.mk above the
+Before running make(1), comment the CPPFLAGS definition in config.mk above the
line with the "OpenBSD" comment and uncomment the one below it:
- #CFLAGS = -g -Wall -pedantic -std=c99 -D_DEFAULT_SOURCE \
- # -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
+ #CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
+ # -D_XOPEN_SOURCE=700
# OpenBSD
- CFLAGS = -g -Wall -pedantic -std=c99 -D_DEFAULT_SOURCE \
- -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 \
- -D_BSD_SOURCE
+ CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
+ -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
Also, do the same for MANPREFIX:
diff --git a/Makefile b/Makefile
@@ -63,4 +63,4 @@ uninstall:
pack: all
sh -x lib/mkpack
-.PHONY: clean install makedate makeversion pack uninstall
+.PHONY: all clean install makedate makeversion pack uninstall
diff --git a/config.mk b/config.mk
@@ -1,9 +1,9 @@
-CC = cc
-CFLAGS = -g -Wall -pedantic -std=c99 -D_DEFAULT_SOURCE \
- -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
+#CC = cc
+CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
+ -D_XOPEN_SOURCE=700
# OpenBSD
-#CFLAGS = -g -Wall -pedantic -std=c99 -D_DEFAULT_SOURCE \
-# -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
+#CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
+# -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
INSTALL = install
LIBS =
SRC = draw.c po.c poe.c strlcat.c strlcpy.c util.c