From e2f686c903cc00d4a4956cf6ff209fa16c950416 Mon Sep 17 00:00:00 2001 From: Spencer Williams Date: Tue, 24 Sep 2024 19:04:53 -0400 Subject: Add connection configuration via INI file --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3