aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 41c8fa1..fc04099 100644
--- a/Makefile
+++ b/Makefile
@@ -99,8 +99,8 @@ HEADER_FILES = $(addprefix $(SOURCE_DIR), $(HEADERS))
99 99
100OBJECT_FILES = $(SOURCE_FILES:%.c=%.o) 100OBJECT_FILES = $(SOURCE_FILES:%.c=%.o)
101 101
102LIBRARY_FLAGS = $(addprefix -l, $(LIBRARIES)) 102LIBRARY_FLAGS = $(addprefix -l, $(LIBRARIES)) $(shell pkg-config --libs $(PACKAGES))
103PACKAGE_FLAGS = $(shell pkg-config --cflags --libs $(PACKAGES)) 103PACKAGE_FLAGS = $(shell pkg-config --cflags $(PACKAGES))
104INCLUDE_FLAGS = $(addprefix -I, $(INCLUDES)) 104INCLUDE_FLAGS = $(addprefix -I, $(INCLUDES))
105 105
106all: $(BINARY) 106all: $(BINARY)
@@ -116,10 +116,10 @@ release: CFLAGS += $(RELEASEFLAGS)
116release: $(BINARY) 116release: $(BINARY)
117 117
118%.o: %.c 118%.o: %.c
119 $(GNU_CC) $(CFLAGS) -c $< -o $@ $(LIBRARY_FLAGS) $(PACKAGE_FLAGS) $(INCLUDE_FLAGS) 119 $(GNU_CC) $(CFLAGS) -c $< -o $@ $(PACKAGE_FLAGS) $(INCLUDE_FLAGS)
120 120
121$(BINARY): $(OBJECT_FILES) 121$(BINARY): $(OBJECT_FILES)
122 $(GNU_LD) $(LDFLAGS) $^ -o $@ $(LIBRARY_FLAGS) $(PACKAGE_FLAGS) 122 $(GNU_LD) $(LDFLAGS) $^ -o $@ $(LIBRARY_FLAGS)
123 123
124.PHONY: mobile 124.PHONY: mobile
125 125