diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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) |