Build system: Started using pkg-config for finding the link flags and cflags for ncursesw
This commit is contained in:
parent
893e44f20a
commit
4da500e5ec
4
Makefile
4
Makefile
@ -24,7 +24,7 @@ else
|
|||||||
Q =
|
Q =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS=-O2
|
CFLAGS::=-O2 $(shell pkg-config ncursesw --cflags)
|
||||||
|
|
||||||
ifeq "${PROFILING}" "1"
|
ifeq "${PROFILING}" "1"
|
||||||
CFLAGS += -pg
|
CFLAGS += -pg
|
||||||
@ -39,7 +39,7 @@ all:${MAIN_ROM}
|
|||||||
|
|
||||||
first: ${OBJECT_FILES}
|
first: ${OBJECT_FILES}
|
||||||
${QUIET_LINK}
|
${QUIET_LINK}
|
||||||
${Q}gcc -ggdb $^ -lncursesw -ltinfow -lm -o $@ ${LDFLAGS}
|
${Q}gcc -ggdb $^ $(shell pkg-config --libs ncursesw) -lm -o $@ ${LDFLAGS}
|
||||||
|
|
||||||
gprof:
|
gprof:
|
||||||
gprof first -b|less
|
gprof first -b|less
|
||||||
|
Loading…
Reference in New Issue
Block a user