diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-07-13 15:53:05 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-07-20 23:52:56 +0200 |
| commit | 6c6e4c4feca6ecb3a155720a3cf737ac48b456ed (patch) | |
| tree | 5ba46923d757af7377bade317d8ee5b3c881eaba | |
| parent | 9cab9431bbcc78947fc60569087d9904971ee7aa (diff) | |
Makefile: Allow users to define LDFLAGS
This should allow for easier packaging if extra linker flags are
required.
| -rw-r--r-- | Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |
