summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
-rw-r--r--README.md2
2 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f2e5640..0802007 100644
--- a/Makefile
+++ b/Makefile
@@ -12,12 +12,16 @@ CFLAGS ?= -Werror -Wall
build: build_dir $(OBJS)
$(CC) -shared -o $(BUILD_DIR)/libopensmarts.so $(addprefix $(OBJ_DIR)/, $(OBJS))
-install:
- install -m 755 ./build/libopensmarts.so /usr/lib64/libopensmarts.so
+install: build
+ install -m 755 ./build/libopensmarts.so /usr/lib/libopensmarts.so
rm -rf /usr/include/osm
mkdir -p /usr/include/osm
cp -r ./include/osm /usr/include
+remove:
+ rm -rf /usr/include/osm
+ rm -rf /usr/lib/libopensmarts.so
+
%.o: $(SRC_DIR)/%.c
$(CC) $(CFLAGS) -c -fpic -I$(INCLUDE_DIR) -o $(BUILD_DIR)/artifacts/$@ $<
diff --git a/README.md b/README.md
index 821679f..ae65906 100644
--- a/README.md
+++ b/README.md
@@ -2,4 +2,4 @@
Utility library for creating and interacting with OpenSmarts compatible devices on embedded linux
-By default, OSm devices are either onboard, or networked. If onboard in an embedded linux environment, they should advertise themselves as a socket under the `/run/osm/onboard` directory. If on the network, they are accessable via port `1313`.
+By default, OSm devices are either onboard, or networked. If onboard in an embedded linux environment, they should advertise themselves as a socket under the `/run/osm/onboard` directory. If on the network, they are accessable via port `1200`.