summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-02-15 07:09:27 +0100
committerRichard Braun <rbraun@sceen.net>2018-02-15 07:09:27 +0100
commitdafc4df642489cc6c704d5c23bf60e199816f6ad (patch)
tree8d6366601c0a2cf183a8fcc7e00c6ee8587b0a09
parente9582f8c8a2ed6032f688f35dc399c0adf96caf1 (diff)
Add a LIBS variableHEADmaster
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 89072c0..8770697 100644
--- a/Makefile
+++ b/Makefile
@@ -6,9 +6,10 @@ CFLAGS = \
BINARY = cpiday
SOURCES = $(wildcard *.c)
OBJECTS = $(SOURCES:.c=.o)
+LIBS = -lm
$(BINARY): $(OBJECTS)
- $(CC) -o $@ $^ -lm
+ $(CC) -o $@ $^ $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<