hirc

IRC client
Log | Files | Refs

commit 0f13bbd4232cb53aaccc779ab1c61139e8f73cf0
parent 7d5f979ef849d61fbb423e352f6e2c18880a8362
Author: hhvn <dev@hhvn.uk>
Date:   Wed, 20 Apr 2022 14:59:53 +0100

Provide CFLAGS to misc/Makefile, but not LDFLAGS

Diffstat:
MMakefile | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -23,7 +23,7 @@ SRC = src/main.c src/mem.c src/handle.c src/hist.c \ src/format.c src/complete.c src/commands.c \ src/config.c src/str.c OBJ = $(SRC:.c=.o) -MAN = hirc.1 +MAN = doc/hirc.1 COMMIT = $(shell git log HEAD...HEAD~1 --pretty=format:%h) CFLAGS = -g -O0 $(CTLS) LDFLAGS = -lncursesw @@ -55,11 +55,12 @@ $(MAN): $(BIN) $(MAN).header $(MAN).footer sed "s/COMMIT/$(COMMIT)/" > $(MAN) misc: - cd misc/ && make + cd misc/ && make \ + CFLAGS="$(CFLAGS)" misc-install: cd misc/ && make install \ - CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \ + CFLAGS="$(CFLAGS)" PREFIX="$(PREFIX)" \ BINDIR="$(BINDIR)" \ MANDIR="$(MANDIR)"