2022-09-19 21:47:22 +03:00
|
|
|
CFLAGS=-g -Wall
|
|
|
|
|
|
|
|
all: snac
|
|
|
|
|
2022-09-20 21:12:21 +03:00
|
|
|
snac: snac.o main.o data.o http.o
|
2022-09-19 21:47:22 +03:00
|
|
|
$(CC) -L/usr/local/lib *.o -lcurl -lcrypto -o $@
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) -I/usr/local/include -c $<
|
|
|
|
|
2022-09-19 23:41:30 +03:00
|
|
|
clean:
|
|
|
|
rm -rf *.o *.core snac
|
|
|
|
|
2022-09-19 21:47:22 +03:00
|
|
|
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
|
|
|
|
|
2022-09-19 22:32:36 +03:00
|
|
|
main.o: main.c snac.h xs.h
|
|
|
|
|
2022-09-20 21:14:21 +03:00
|
|
|
data.o: data.c snac.h xs.h xs_json.h xs_openssl.h
|
2022-09-20 21:12:21 +03:00
|
|
|
|
|
|
|
http.o: http.c snac.h xs.h xs_io.h xs_encdec.h xs_openssl.h xs_curl.h
|