From db4e679769f54943997a1b5936551996d97b3855 Mon Sep 17 00:00:00 2001 From: cbdev Date: Wed, 21 Jun 2017 21:10:52 +0200 Subject: Fix typo, improve makefile --- makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 6819f7f..2101e96 100644 --- a/makefile +++ b/makefile @@ -1,17 +1,18 @@ .PHONY: clean -BACKENDS = artnet.so midi.so osc.so +BACKENDS = artnet.so midi.so osc.so loopback.so OBJS = config.o backend.o plugin.o PLUGINDIR = "\"./\"" -LDLIBS = -lasound -ldl CFLAGS ?= -g -Wall - -midimonster: CFLAGS += -rdynamic -DPLUGINS=$(PLUGINDIR) %.so: CFLAGS += -fPIC %.so: LDFLAGS += -shared +midimonster: LDLIBS = -ldl +midimonster: CFLAGS += -rdynamic -DPLUGINS=$(PLUGINDIR) +midi.so: LDLIBS = -lasound + %.so :: %.c %.h - $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) + $(CC) $(CFLAGS) $(LDLIBS) $< -o $@ $(LDFLAGS) all: midimonster $(BACKENDS) -- cgit v1.2.3