pplugins/ducker/Makefile

25 lines
427 B
Makefile

CFLAGS := -Wall -O3 -g -D_GNU_SOURCE
LDFLAGS := -lm
CFLAGS += `pkg-config lv2core --cflags`
LDFLAGS += `pkg-config lv2core --libs`
DUCKERSRC := ducker.c
DUCKEROBJ := $(DUCKERSRC:.c=.o)
DUCKERO := ducker.so
all: $(DUCKERO)
clean:
rm $(DUCKEROBJ) $(DUCKERO)
depend:
makedepend $(DUCKERSRC)
$(DUCKERO): $(DUCKEROBJ)
$(CC) -shared -fPIC -Wl,-soname,$(DUCKERO) $(DUCKEROBJ) -o $@
.c.o:
$(CC) -c -fPIC $(CFLAGS) $< -o $@