summaryrefslogtreecommitdiffstats
path: root/package/librtk-inband/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/librtk-inband/src/Makefile')
-rw-r--r--package/librtk-inband/src/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/librtk-inband/src/Makefile b/package/librtk-inband/src/Makefile
new file mode 100644
index 000000000..fa0cb9a71
--- /dev/null
+++ b/package/librtk-inband/src/Makefile
@@ -0,0 +1,21 @@
+INCLUDES=-Iinclude
+
+LIBNAME=librtk-inband.so
+APPNAME=rtk-inband
+
+all: $(LIBNAME) $(APPNAME)
+
+%.o: %.c
+ $(CC) -c -o $@ $(INCLUDES) $(CFLAGS) $<
+
+OBJ=inband_if.o ioh.o
+
+LIB_OBJ=hapd_api.o $(OBJ)
+APP_OBJ=inband_cmd.o $(OBJ)
+
+
+$(APPNAME):$(APP_OBJ)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+$(LIBNAME): $(LIB_OBJ)
+ $(CC) $(CFLAGS) -shared -o $@ $^