sled

Једноставни уређивач текста
git clone https://git.sr.ht/~strahinja/sled
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување 9eaa713db07d4987da899b3c108305c66d26aba9
родитељ 9ccb807a3e6afbd962c60c23a6d4b405ec5db99c
Аутор: Страхиња Радић <contact@strahinja.org>
Датум:   Fri, 15 Mar 2024 20:29:30 +0100

config.mk: Split CFLAGS into CFLAGS and CPPFLAGS; -g -> -Os; comment out CC by
default

Signed-off-by: Страхиња Радић <contact@strahinja.org>

Diffstat:
A.rebuild | 0
MINSTALL | 11+++++------
Mconfig.mk | 11++++++-----
измењених датотека: 3, додавања: 11(+), брисања: 11(-)

diff --git a/.rebuild b/.rebuild diff --git a/INSTALL b/INSTALL @@ -39,15 +39,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/config.mk b/config.mk @@ -1,9 +1,10 @@ -CC = cc -CFLAGS = -g -Wall -pedantic -std=c99 -D_DEFAULT_SOURCE \ - -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 +#CC = cc +CFLAGS = -Os -Wall -pedantic -std=c99 +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 sled.c strlcat.c strlcpy.c util.c