links

lynx-like text mode web browser
git clone anongit@rnpnr.xyz:links.git
Log | Files | Refs | Feed | README | LICENSE

Commit: ec6cab383f607f1d72927cb7e383f394c20ff3d7
Parent: 087af1110ac9878aff4d9a73db1a721be386a87f
Author: Randy Palamar
Date:   Fri, 25 Nov 2022 21:23:28 -0700

move $(INCS) & $(CPPFLAGS) to .c.o target

INCS should have been in CFLAGS to begin with and moving CPPFLAGS makes
it easier to change CFLAGS on make invocation

Diffstat:
MMakefile | 2+-
Mconfig.mk | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -49,7 +49,7 @@ options: @echo "CC = $(CC)" .c.o: - $(CC) $(CFLAGS) -c $< + $(CC) $(CFLAGS) $(INCS) $(CPPFLAGS) -c $< config.h: cp config.def.h $@ diff --git a/config.mk b/config.mk @@ -8,5 +8,5 @@ LIBS = -L/usr/lib -L/usr/local/lib \ -lcrypto -levent -lm -lssl -lz CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_BSD_SOURCE -CFLAGS = -O2 -std=c99 -Wall -pedantic $(CPPFLAGS) -LDFLAGS = $(LIBS) $(INCS) +CFLAGS = -O2 -std=c99 -Wall -pedantic +LDFLAGS = $(LIBS)