aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-09-19 09:41:20 +0200
committerTheJackiMonster <thejackimonster@gmail.com>2022-09-19 09:41:20 +0200
commit0d13c64bd1da856353e89cb23650c8e004558b0e (patch)
tree2f65bdf17ca839f0ba15b078e21054bdf56e5bf2
parentcac434c7bc444845066ce4c5e42fcf57a4a91b3c (diff)
downloadmessenger-gtk-0d13c64bd1da856353e89cb23650c8e004558b0e.tar.gz
messenger-gtk-0d13c64bd1da856353e89cb23650c8e004558b0e.zip
Remove library flags from compiling
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-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