aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-08-28 14:21:43 -0300
committerEuAndreh <eu@euandre.org>2021-08-28 14:21:43 -0300
commitc3904a9ae6689f170fff35e471d88fe8120ad767 (patch)
tree7b3a6a857e4f55fb880e61e9c52c2cb298fdae13
parentsrc/lib.c: Remove duplicate definition of PROGNAME (diff)
downloadgistatic-c3904a9ae6689f170fff35e471d88fe8120ad767.tar.gz
gistatic-c3904a9ae6689f170fff35e471d88fe8120ad767.tar.xz
Makefile: Remove duplicate usage of $(CFLAGS), $(LDFLAGS) and $(LDLIBS)
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1a174ac..e45c8d0 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ LDLIBS = -lgit2
sed -e 's:@VERSION@:$(VERSION):g' -e 's:@DATE@:$(DATE):g' < $< > $@
.c.to:
- $(CC) $(CFLAGS) $(LDFLAGS) -DTEST -o $@ -c $< $(LDLIBS)
+ $(CC) $(CFLAGS) -DTEST -o $@ -c $<
manpages.en.in = \
@@ -38,10 +38,10 @@ t-objects = $(sources:.c=.to) src/tests-lib.to src/main.to
all: gistatic libgistatic.a $(manpages)
gistatic: $(all-objects)
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(all-objects) $(LDLIBS)
+ $(CC) $(LDFLAGS) -o $@ $(all-objects) $(LDLIBS)
gistatic-tests: $(t-objects)
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(t-objects) $(LDLIBS)
+ $(CC) $(LDFLAGS) -o $@ $(t-objects) $(LDLIBS)
libgistatic.a: $(lib-objects)
$(AR) $(ARFLAGS) $@ $(lib-objects)