mirror of
https://github.com/arp242/find-cursor
synced 2024-10-30 09:20:51 +00:00
specify the libraries after source files
This commit is contained in:
parent
a78c716475
commit
11ad767bd4
5
Makefile
5
Makefile
@ -3,12 +3,13 @@ PREFIX ?= /usr/local
|
|||||||
NAME ?= find-cursor
|
NAME ?= find-cursor
|
||||||
|
|
||||||
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wpedantic -Os
|
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
|
.PHONY: all clean install uninstall
|
||||||
|
|
||||||
all:
|
all:
|
||||||
${CC} ${CFLAGS} ${LDFLAGS} -o ${NAME} *.c
|
${CC} ${CFLAGS} ${LDFLAGS} -o ${NAME} *.c ${LIBS}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f ${NAME}
|
rm -f ${NAME}
|
||||||
|
Loading…
Reference in New Issue
Block a user