wdvi

network DVI viewer
Log | Files | Refs

commit a884ab131418ed5cc5e4eab38870ff5f04c33ed0
parent b841c3405ac60a2d0b7bb30c80c0851cc630c92e
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Sun, 12 Mar 2023 03:48:56 +0000

Makefile cleanup

- use LDADD instead of abusing LDFLAGS
- remove old CFLAGS
- use link command line order that make does

Diffstat:
MMakefile | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile @@ -16,16 +16,15 @@ SRCS = dvi-draw.c \ PKGS = freetype2 openssl xaw7 PKGS_CFLAGS != pkg-config --cflags ${PKGS} -PKGS_LDFLAGS != pkg-config --libs ${PKGS} +PKGS_LDADD != pkg-config --libs ${PKGS} CPPFLAGS += -MD ${PKGS_CFLAGS} -#CFLAGS += -Wmissing-prototypes -Wno-uninitialized -Wstrict-prototypes -#CFLAGS += -Wunused-parameter -Wshadow -CFLAGS += -Wall -g -LDFLAGS += -Xlinker --allow-multiple-definition -lm +CFLAGS += -Wall -g # -Wshadow +LDFLAGS += -Xlinker --allow-multiple-definition +LDADD += -lm ${PKGS_LDADD} ${PROG}: ${SRCS:.c=.o} - ${CC} -o ${PROG} ${SRCS:.c=.o} ${LDFLAGS} ${PKGS_LDFLAGS} + ${CC} ${LDFLAGS} -o ${PROG} ${SRCS:.c=.o} ${LDADD} default.h: wdvi.1 -roff2dvi wdvi.1 > default.dvi && xxd -i default.dvi $@