diff options
author | norly <ny-git@enpas.org> | 2013-02-12 15:44:48 +0000 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2013-06-03 02:08:00 +0100 |
commit | 030aeb591f867263f734ca2e232c45dc98f3ec50 (patch) | |
tree | ba9db73f4aeda4107215d4dbfa251723c23b20cf | |
parent | f65740be4063729db219dff54ea2cbe60038f0cc (diff) |
Use pkg-config
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,5 +1,7 @@ PROJ := elfedit +LIBRARIES := libelf + BUILDDIR := build INCLUDEDIR := include SRCDIR := src @@ -11,9 +13,9 @@ HEADERS += $(shell find $(SRCDIR)/ -iname "*.h") SOURCES := $(shell find $(SRCDIR)/ -iname "*.c") OBJS := $(patsubst %.c, $(BUILDDIR)/%.o, $(SOURCES)) -INCLUDES := $(patsubst %, -I%, $(INCLUDEDIR) $(SRCDIR)) -CFLAGS := -g -Wall -LDFLAGS := -lelf +INCLUDES := $(patsubst %, -I%, $(INCLUDEDIR) $(SRCDIR)) $(shell pkg-config --cflags-only-I $(LIBRARIES)) +CFLAGS := -g -Wall $(shell pkg-config --cflags-only-other $(LIBRARIES)) +LDFLAGS := $(shell pkg-config --libs $(LIBRARIES)) |