Move ducker to separate directory
This commit is contained in:
24
ducker/Makefile
Normal file
24
ducker/Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
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 $@
|
||||
|
Reference in New Issue
Block a user