~skiqqy/baal

09d465ec44503d7025725f937a33389f20a380e4 — Stephen Cochrane 3 years ago 026d607
Fix linking
1 files changed, 3 insertions(+), 1 deletions(-)

M Makefile
M Makefile => Makefile +3 -1
@@ 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)