aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-12-27 15:05:49 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-12-27 15:05:49 +0000
commitf4373a1f831355e0a7eb7b33b373c14d5fc05926 (patch)
tree112c5f8cf7f7fb4e0303b86fc8cf432e4f8afd75
parenta339d07ec689adc47390ff95822f0472b5b2168f (diff)
parent96bd50edc990887084da254dc78f9c4657d2c76e (diff)
downloadimv-f4373a1f831355e0a7eb7b33b373c14d5fc05926.tar.gz
Merge pull request #66 from czarkoff/master
Drop `obj` target
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a979d65..0768a7f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: imv obj clean check install uninstall
+.PHONY: imv clean check install uninstall
PREFIX ?= /usr
BINPREFIX ?= $(PREFIX)/bin
@@ -26,14 +26,14 @@ CFLAGS += -DIMV_VERSION=\"$(VERSION)\"
imv: $(TARGET)
-$(TARGET): obj
+$(TARGET): $(OBJECTS)
@echo "LINKING $@"
- $(MUTE)$(CC) -o $@ $(OBJECTS) $(LDLIBS) $(LDFLAGS)
+ $(MUTE)$(CC) -o $@ $^ $(LDLIBS) $(LDFLAGS)
debug: CFLAGS += -DDEBUG -g -pg
debug: $(TARGET)
-obj: $(BUILDDIR) $(OBJECTS)
+$(OBJECTS): | $(BUILDDIR)
$(BUILDDIR):
$(MUTE)mkdir -p $(BUILDDIR)