Merge pull request #24 from MikeWalrus/master

Specify the libraries after source files
This commit is contained in:
Martin Tournoij 2022-01-26 14:18:33 +01:00 committed by GitHub
commit 32f9e7f1d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,12 +3,13 @@ PREFIX ?= /usr/local
NAME ?= find-cursor
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wpedantic -Os
LDFLAGS += -L/usr/lib -lX11 -lXext -lXfixes
LDFLAGS += -L/usr/lib
LIBS += -lX11 -lXext -lXfixes
.PHONY: all clean install uninstall
all:
${CC} ${CFLAGS} ${LDFLAGS} -o ${NAME} *.c
${CC} ${CFLAGS} ${LDFLAGS} -o ${NAME} *.c ${LIBS}
clean:
rm -f ${NAME}