diff options
author | cbdev <cb@cbcdn.com> | 2017-06-21 21:10:52 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2017-06-21 21:10:52 +0200 |
commit | db4e679769f54943997a1b5936551996d97b3855 (patch) | |
tree | 6ac2b14d3c52e30fd4449654c879877b3b0560b6 /makefile | |
parent | ce46f0e9d232c9469c3626db82633071bc6446dc (diff) | |
download | midimonster-db4e679769f54943997a1b5936551996d97b3855.tar.gz midimonster-db4e679769f54943997a1b5936551996d97b3855.tar.bz2 midimonster-db4e679769f54943997a1b5936551996d97b3855.zip |
Fix typo, improve makefile
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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) |