aboutsummaryrefslogtreecommitdiffstats
path: root/stacks/fstack/app/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'stacks/fstack/app/Makefile')
-rw-r--r--stacks/fstack/app/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/stacks/fstack/app/Makefile b/stacks/fstack/app/Makefile
new file mode 100644
index 0000000..42f5274
--- /dev/null
+++ b/stacks/fstack/app/Makefile
@@ -0,0 +1,9 @@
+LIBS+= -L../../../release/lib64 -Wl,--whole-archive,-lnStackAPI,--no-whole-archive
+TARGET="fstack"
+all:
+ cc -O -gdwarf-2 -Wl,--rpath,../../../release/lib64 -I../../../src/nSocket/include -o ${TARGET}_multi_sock_epoll multi_sock_tcp_epoll.c ${LIBS}
+ cc -O -gdwarf-2 -Wl,--rpath,../../../release/lib64 -I../../../src/nSocket/include -o ${TARGET}_server_no_epoll fstack_server.c ${LIBS}
+ cc -O -gdwarf-2 -Wl,--rpath,../../../release/lib64 -I../../../src/nSocket/include -o ${TARGET}_single_sock_server single_sock_tcp_epoll.c ${LIBS}
+.PHONY: clean
+clean:
+ rm -f *.o ${TARGET}_multi_sock_epoll ${TARGET}_single_sock_server ${TARGET}_server_no_epoll