diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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/$@ $< |