diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -99,8 +99,8 @@ HEADER_FILES = $(addprefix $(SOURCE_DIR), $(HEADERS)) | |||
99 | 99 | ||
100 | OBJECT_FILES = $(SOURCE_FILES:%.c=%.o) | 100 | OBJECT_FILES = $(SOURCE_FILES:%.c=%.o) |
101 | 101 | ||
102 | LIBRARY_FLAGS = $(addprefix -l, $(LIBRARIES)) | 102 | LIBRARY_FLAGS = $(addprefix -l, $(LIBRARIES)) $(shell pkg-config --libs $(PACKAGES)) |
103 | PACKAGE_FLAGS = $(shell pkg-config --cflags --libs $(PACKAGES)) | 103 | PACKAGE_FLAGS = $(shell pkg-config --cflags $(PACKAGES)) |
104 | INCLUDE_FLAGS = $(addprefix -I, $(INCLUDES)) | 104 | INCLUDE_FLAGS = $(addprefix -I, $(INCLUDES)) |
105 | 105 | ||
106 | all: $(BINARY) | 106 | all: $(BINARY) |
@@ -116,10 +116,10 @@ release: CFLAGS += $(RELEASEFLAGS) | |||
116 | release: $(BINARY) | 116 | release: $(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 | ||