diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5187245 --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | CFLAGS=-g -Wall | ||
| 2 | |||
| 3 | all: snac | ||
| 4 | |||
| 5 | snac: 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 | |||
| 11 | snac.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 | |||
| 14 | clean: | ||
| 15 | rm -rf *.o *.core snac | ||