@@ 14,6 14,8 @@ all: baal
init:
mkdir -p bin
+ -@[ ! -f include/cJSON.h ] && ln -s ../libs/cJSON/build/libcjson.so bin/libcjson.so \
+ || echo "bin/libcjson.so symlink already exists"
-@[ ! -f include/cJSON.h ] && ln -s ../libs/cJSON/cJSON.h include/cJSON.h \
|| echo "include/cJSON.h symlink already exists"
-@[ ! -f config.mk ] && \
@@ 29,7 31,7 @@ init:
fi
baal: init baaljlib.o baalserver.o baalclient.o
- $(CC) $(FLAGS) -o bin/$(BINARY) src/baal.c bin/*.o $(LDLIBS)
+ $(CC) $(FLAGS) -o bin/$(BINARY) src/baal.c bin/*.o bin/*.so $(LDLIBS)
baaljlib.o: src/baaljlib.c
$(CC) $(FLAGS) -c $< -o bin/$@ $(LDLIBS)