aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorgrunfink <grunfink@noreply.codeberg.org>2025-04-27 03:11:57 +0000
committergrunfink <grunfink@noreply.codeberg.org>2025-04-27 03:11:57 +0000
commit169c5c8c070c527e7462e6ac86b916e94649c1ac (patch)
treef1ce03b950a278a1985526cb58dc4e879c3ab046 /Makefile
parent2e39e4e3c36dc23598173f3b6fe64a103574d089 (diff)
parent7f936d2d1a88840209895c6091801e8c4cfdaaa1 (diff)
Merge pull request 'do email notifications with CURL' (#283) from shtrophic/snac2:curl-smtp into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/283
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 012973d..d6389b5 100644
--- a/Makefile
+++ b/Makefile
@@ -8,11 +8,16 @@ snac: snac.o main.o sandbox.o data.o http.o httpd.o webfinger.o \
activitypub.o html.o utils.o format.o upgrade.o mastoapi.o
$(CC) $(CFLAGS) -L$(PREFIX)/lib *.o -lcurl -lcrypto $(LDFLAGS) -pthread -o $@
+test: tests/smtp
+
+tests/smtp: tests/smtp.o
+ $(CC) $(CFLAGS) -L$(PREFIX)/lib $< -lcurl $(LDFLAGS) -o $@
+
.c.o:
- $(CC) $(CFLAGS) $(CPPFLAGS) -I$(PREFIX)/include -c $<
+ $(CC) $(CFLAGS) $(CPPFLAGS) -I$(PREFIX)/include -c $< -o $@
clean:
- rm -rf *.o *.core snac makefile.depend
+ rm -rf *.o tests/*.o tests/smtp *.core snac makefile.depend
dep:
$(CC) -I$(PREFIX)/include -MM *.c > makefile.depend
@@ -72,3 +77,4 @@ utils.o: utils.c xs.h xs_io.h xs_json.h xs_time.h xs_openssl.h \
xs_random.h xs_glob.h xs_curl.h xs_regex.h snac.h http_codes.h
webfinger.o: webfinger.c xs.h xs_json.h xs_curl.h xs_mime.h snac.h \
http_codes.h
+tests/smtp.o: tests/smtp.c xs.h xs_curl.h