summaryrefslogtreecommitdiff
path: root/bridge/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/Makefile')
-rw-r--r--bridge/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/bridge/Makefile b/bridge/Makefile
new file mode 100644
index 0000000..5d1fb0c
--- /dev/null
+++ b/bridge/Makefile
@@ -0,0 +1,19 @@
+AR := $(CROSS_COMPILE)ar
+CC := $(CROSS_COMPILE)gcc
+CFLAGS := -O2 -W -Wall -DDSP_API=2 -fPIC
+LDFLAGS := -shared
+
+OBJECTS := dsp_bridge.o
+
+%.o : %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+all: libdspbridge.a
+
+libdspbridge.a: $(OBJECTS)
+ $(AR) r $@ $^
+
+clean:
+ -$(RM) *.o
+ -$(RM) libdspbridge.a
+