[main.c] New file.

This commit is contained in:
default 2022-09-19 21:32:36 +02:00
parent b1a1717fd9
commit 8fbe3199df
3 changed files with 16 additions and 9 deletions

View file

@ -2,7 +2,7 @@ CFLAGS=-g -Wall
all: snac
snac: snac.o
snac: snac.o main.o
$(CC) -L/usr/local/lib *.o -lcurl -lcrypto -o $@
.c.o:
@ -11,5 +11,7 @@ snac: snac.o
snac.o: snac.c snac.h \
xs.h xs_io.h xs_encdec.h xs_json.h xs_curl.h xs_openssl.h xs_socket.h xs_httpd.h
main.o: main.c snac.h xs.h
clean:
rm -rf *.o *.core snac

13
main.c Normal file
View file

@ -0,0 +1,13 @@
/* snac - A simple, minimalistic ActivityPub instance */
/* copyright (c) 2022 grunfink - MIT license */
#include "xs.h"
#include "snac.h"
int main(int argc, char *argv[])
{
srv_open("/home/angel/lib/snac/comam.es");
return 0;
}

8
snac.c
View file

@ -103,11 +103,3 @@ int srv_open(char *basedir)
return ret;
}
int main(int argc, char *argv[])
{
srv_open("/home/angel/lib/snac/comam.es");
return 0;
}