aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-13 15:53:05 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-16 03:33:40 +0200
commit4eb044e62526f32c89a645525505722b80d49e96 (patch)
treec4ec4258e6bb636d1be6254a87a7037242cdb9e5
parent38f3f82a77ed4782a9c4e1b4e5a6d9d4c71390a2 (diff)
downloadslcl-4eb044e62526f32c89a645525505722b80d49e96.tar.gz
Makefile: Allow users to define LDFLAGS
This should allow for easier packaging if extra linker flags are required.
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ab56da6..4636119 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,6 @@ O = -Og
CDEFS = -D_FILE_OFFSET_BITS=64 # Required for large file support on 32-bit.
CFLAGS = $(O) $(CDEFS) -g -Wall -Idynstr/include -MD -MF $(@:.o=.d)
LIBS = -lcjson -lssl -lm -lcrypto
-LDFLAGS = $(LIBS)
DEPS = $(OBJECTS:.o=.d)
DYNSTR = dynstr/libdynstr.a
DYNSTR_FLAGS = -Ldynstr -ldynstr
@@ -30,7 +29,7 @@ clean:
rm -f $(OBJECTS) $(DEPS)
$(PROJECT): $(OBJECTS) $(DYNSTR)
- $(CC) $(OBJECTS) $(LDFLAGS) $(DYNSTR_FLAGS) -o $@
+ $(CC) $(OBJECTS) $(LDFLAGS) $(LIBS) $(DYNSTR_FLAGS) -o $@
$(DYNSTR):
+cd dynstr && $(MAKE)