summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 07d4312..67ad147 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
BINS = ascii class depipe_strings dup fpipe pipe realloc strpbrk strsep \
tokenizer getopt prime_mask linked_list pi_bbp string_tokenizer \
tcpserver tcpclient regexp
+
+CURL = curl_tomem curl_tofile
+
CC = gcc
CFLAGS = -Wall -std=gnu99 -pedantic
DBGFLAGS = -g -O0
@@ -11,13 +14,15 @@ else
endif
LDFLAGS = -lm
-all: $(BINS)
+all: $(BINS) $(CURL)
$(BINS): %: %.c
- $(CC) $(CFLAGS) $^ -o $@
+ $(CC) $(CFLAGS) $^ -o $@
+$(CURL): %: %.c
+ $(CC) `curl-config --libs` $(CFLAGS) $^ -o $@
.PHONY: clean
clean:
- rm -f ./$(BINS)
+ rm -f ./$(BINS) ./$(CURL)