summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 59dcb5e..2380dad 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,16 @@
TARGET = mpc-bar
-OBJCFLAGS = -O2 -fobjc-arc -Wall
+CFLAGS = -O2 -fobjc-arc -Wall
LDFLAGS = -lmpdclient -framework Cocoa
BINDIR = /usr/local/bin
-$(TARGET): mpc-bar.m
- $(CC) $(OBJCFLAGS) $< $(LDFLAGS) -o $@
+$(TARGET): mpc-bar.o ini.o
+ $(CC) $^ $(LDFLAGS) -o $@
+
+mpc-bar.o ini.o: ini.h
install: $(TARGET)
install -d $(BINDIR)
install -m755 $< $(BINDIR)/$<
clean:
- rm -f $(TARGET)
+ rm -f $(TARGET) mpc-bar.o ini.o