feader-c-lib/Makefile

23 lines
387 B
Makefile
Raw Normal View History

2018-02-08 02:12:40 +00:00
CFLAGS=-g -Wall
2018-02-09 04:19:46 +00:00
INCLUDE=-I/usr/local/include -I/usr/local/include/libxml2
2018-02-08 02:12:40 +00:00
LDFLAGS=-L/usr/local/lib
2018-02-09 04:19:46 +00:00
LDLIBS=-lcurl -lxml2 -lz -lm -ldl
2018-02-08 02:12:40 +00:00
SOURCES=src/feader.c
OUTPUT=-o out/feader
2018-02-08 03:59:00 +00:00
all: clean setup build run
2018-02-08 02:12:40 +00:00
build: $(SOURCES)
gcc $(CFLAGS) $(OUTPUT) $(INCLUDE) $(LDFLAGS) $(SOURCES) $(LDLIBS)
clean:
rm -rf out
setup:
mkdir out
2018-02-08 03:59:00 +00:00
run:
2018-02-09 04:19:46 +00:00
./out/feader http://cave.wbrawner.com/feed.xml