Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (14 sloc) 594 Bytes
CFLAGS = -std=c99 -Wall -I/usr/include/subversion-1 $(shell apr-1-config --includes)
LDLIBS = -lspotify -levent -levent_pthreads -ljansson -lsvn_diff-1 -lsvn_subr-1 $(shell apr-1-config --link-ld --libs)
SOURCES = diff.c json.c server.c main.c
override CFLAGS += $(shell apr-1-config --cflags)
override CPPFLAGS += $(shell apr-1-config --cppflags)
override LDFLAGS += $(shell apr-1-config --ldflags)
all: server
debug: CFLAGS += -g -DDEBUG
debug: all
server: $(SOURCES)
$(CC) $(CFLAGS) $(CPPFLAGS) $(SOURCES) $(LDFLAGS) -o $@ $(LDLIBS)
clean:
rm -f *.o server
rm -rf .settings .cache