]> git.karo-electronics.de Git - oswald.git/blobdiff - linux-bt/Makefile
Add Linux Bluetooth test application
[oswald.git] / linux-bt / Makefile
diff --git a/linux-bt/Makefile b/linux-bt/Makefile
new file mode 100644 (file)
index 0000000..7d3390d
--- /dev/null
@@ -0,0 +1,16 @@
+CFLAGS = -Wall -O2
+SRC = l2cap_client.c
+PRG = l2cap_client
+
+OBJS = $(SRC:.c=.o)
+
+all: $(PRG)
+
+$(PRG): $(OBJS)
+       $(CC) -o $(PRG) $(OBJS) -lbluetooth
+
+%.o: %c
+       $(CC) -c $(CFLAGS) -o $@ $<
+
+clean:
+       rm -f $(OBJS) $(PRG)