summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2011-11-17 17:20:22 -0600
committerKamil Kaminski <kamilkss@gmail.com>2011-11-17 17:20:22 -0600
commit7355004fe46fc6bba1da254ef37b64be0d77d532 (patch)
tree041e17c0cf86a8f04ee6be739a1e92472f030cab /Makefile
parent320f1c2347e3270a82b90bf03bf0ea1c48ad4eb2 (diff)
downloadsandbox-7355004fe46fc6bba1da254ef37b64be0d77d532.tar.gz
sandbox-7355004fe46fc6bba1da254ef37b64be0d77d532.tar.bz2
sandbox-7355004fe46fc6bba1da254ef37b64be0d77d532.zip
add 2 curl examples
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)