aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh5
-rw-r--r--compile_flags.txt2
m---------libs/socket0
-rwxr-xr-xsrc/main.c3
4 files changed, 7 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 0139160..659b7f9 100755
--- a/build.sh
+++ b/build.sh
@@ -19,7 +19,10 @@ shift $((OPTIND-1))
printf "\n\nmaking project\n"
clang -Ilibs/iceys-c-libs -c libs/iceys-c-libs/iceys-utils.c -o obj/iceys-utils.o
+clang -Ilibs/socket -c libs/socket/Server.c -o obj/Server.o
+clang -Ilibs/socket -c libs/socket/launch-socket.c -o obj/launch-socket.o
+
+clang obj/Server.o obj/iceys-utils.o obj/launch-socket.o -o bin/socket src/main.c $LIB $DEBUG_FLAGS -lm
-clang obj/iceys-utils.o -o bin/socket src/main.c $LIB $DEBUG_FLAGS -lm
clang -o bin/client src/client.c $LIB $DEBUG_FLAGS -lm
clang -o bin/client-polled src/client-polled.c $LIB $DEBUG_FLAGS -lm
diff --git a/compile_flags.txt b/compile_flags.txt
index edd63a2..d2cde3a 100644
--- a/compile_flags.txt
+++ b/compile_flags.txt
@@ -1,2 +1,2 @@
--I/home/iceyrazor/stuff/scripts/c/my_utils/socket
+-Ilibs/socket
-Ilibs/iceys-c-libs \ No newline at end of file
diff --git a/libs/socket b/libs/socket
-Subproject 7e287a8ca7164e871965339196511fdcf024892
+Subproject 3521cc6e1a87f16c8db5c3c5a0c3cf59e1ff04c
diff --git a/src/main.c b/src/main.c
index 8b28d63..8ebc69a 100755
--- a/src/main.c
+++ b/src/main.c
@@ -1,4 +1,5 @@
-#include <launch-socket.c>
+#include <launch-socket.h>
+#include <Server.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>