mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-24 22:15:04 +00:00
[main.c] New file.
This commit is contained in:
parent
b1a1717fd9
commit
8fbe3199df
3 changed files with 16 additions and 9 deletions
4
Makefile
4
Makefile
|
@ -2,7 +2,7 @@ CFLAGS=-g -Wall
|
||||||
|
|
||||||
all: snac
|
all: snac
|
||||||
|
|
||||||
snac: snac.o
|
snac: snac.o main.o
|
||||||
$(CC) -L/usr/local/lib *.o -lcurl -lcrypto -o $@
|
$(CC) -L/usr/local/lib *.o -lcurl -lcrypto -o $@
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
|
@ -11,5 +11,7 @@ snac: snac.o
|
||||||
snac.o: snac.c snac.h \
|
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
|
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:
|
clean:
|
||||||
rm -rf *.o *.core snac
|
rm -rf *.o *.core snac
|
||||||
|
|
13
main.c
Normal file
13
main.c
Normal 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
8
snac.c
|
@ -103,11 +103,3 @@ int srv_open(char *basedir)
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
srv_open("/home/angel/lib/snac/comam.es");
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue