чување dd5987f5087c5d386f11e98daceadec0107fdaac
родитељ 5d8f34e533b0701219c1e47662bccb4c1b721916
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Fri, 15 Mar 2024 21:45:19 +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, додавања: 9(+), брисања: 15(-)
diff --git a/INSTALL b/INSTALL
@@ -4,12 +4,6 @@ Prerequisites
* C compiler - defaults in config.mk
-Optional
---------
-
-* gzip (autodetected, for manpage compression)
-
-
Install
-------
@@ -33,12 +27,11 @@ OpenBSD
Before running make(1), comment the CFLAGS definition in config.mk above the
line with the "OpenBSD" comment and uncomment the one below it:
- #CFLAGS = -g -Wall -pedantic -std=c99 \
- # -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_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
@@ -58,4 +58,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,8 +1,9 @@
-CC = cc
-CFLAGS = -g -Wall -pedantic -std=c99 -D_POSIX_C_SOURCE=200809L \
+#CC = cc
+CFLAGS = -Os -Wall -pedantic -std=c99
+CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
-D_XOPEN_SOURCE=700
# OpenBSD
-#CFLAGS = -g -O0 -Wall -pedantic -std=c99 -D_POSIX_C_SOURCE=200809L \
+#CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L \
# -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
INSTALL = install
LIBS =