aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSpencer Williams <spnw@plexwave.org>2024-09-24 19:04:53 -0400
committerSpencer Williams <spnw@plexwave.org>2024-09-24 19:36:32 -0400
commite2f686c903cc00d4a4956cf6ff209fa16c950416 (patch)
treee136311b280f86d7ad805c1f3eed056db151a439 /Makefile
parent2fcdff498ad01421e89e35a8971af326d63aab4d (diff)
Add connection configuration via INI filev0.1.2
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