aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-12-01 12:58:05 +0100
committerAnton Khirnov <anton@khirnov.net>2014-12-01 12:58:05 +0100
commitb4cc938cd7378fa4e1d6ec2eb966e6fc657f10e1 (patch)
tree4d0ad1749b72f0a78fae71211f15accf1bfc594d
parente7917b740e8907476d9fb440ba1c9cafb7bafcaa (diff)
Makefile: add an indirection for object files
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bab8386..75de828 100644
--- a/Makefile
+++ b/Makefile
@@ -3,12 +3,14 @@ LDFLAGS = --version-script=libbrilldata.v -shared -lgsl -lm -llapacke
TARGET = libbrilldata.so
+OBJECTS = brill_data.o
+
all: $(TARGET)
-$(TARGET): brill_data.o
+$(TARGET): $(OBJECTS)
ld ${LDFLAGS} -o $@ $<
clean:
- -rm *.o $(TARGET)
+ -rm $(OBJECTS) $(TARGET)
.PHONY: clean