summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 $@ $<