summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile15
-rw-r--r--snac.c20
-rw-r--r--snac.h2
3 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5187245
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
1CFLAGS=-g -Wall
2
3all: snac
4
5snac: snac.o
6 $(CC) -L/usr/local/lib *.o -lcurl -lcrypto -o $@
7
8.c.o:
9 $(CC) $(CFLAGS) -I/usr/local/include -c $<
10
11snac.o: snac.c snac.h \
12 xs.h xs_io.h xs_encdec.h xs_json.h xs_curl.h xs_openssl.h xs_socket.h xs_httpd.h
13
14clean:
15 rm -rf *.o *.core snac
diff --git a/snac.c b/snac.c
new file mode 100644
index 0000000..c28c607
--- /dev/null
+++ b/snac.c
@@ -0,0 +1,20 @@
1/* copyright (c) 2022 grunfink - MIT license */
2
3#define XS_IMPLEMENTATION
4
5#include "xs.h"
6#include "xs_io.h"
7#include "xs_encdec.h"
8#include "xs_json.h"
9#include "xs_curl.h"
10#include "xs_openssl.h"
11#include "xs_socket.h"
12#include "xs_httpd.h"
13
14#include "snac.h"
15
16
17int main(int argc, char *argv[])
18{
19 return 0;
20}
diff --git a/snac.h b/snac.h
new file mode 100644
index 0000000..2038c9d
--- /dev/null
+++ b/snac.h
@@ -0,0 +1,2 @@
1/* copyright (c) 2022 grunfink - MIT license */
2