blob: e6b7c534f0d8764891248892028f9fba7d08802f [file] [log] [blame]
Christopher Faulet010fded2016-11-03 22:49:37 +01001DESTDIR =
2PREFIX = /usr/local
3BINDIR = $(PREFIX)/bin
4
5CC = gcc
6LD = $(CC)
7
8CFLAGS = -g -O2 -Wall -Werror -pthread
9LDFLAGS = -lpthread
10
11OBJS = spoa.o
12
13
14spoa: $(OBJS)
15 $(LD) $(LDFLAGS) -o $@ $^
16
17install: spoa
18 install spoa $(DESTDIR)$(BINDIR)
19
20clean:
21 rm -f spoa $(OBJS)
22
23%.o: %.c
24 $(CC) $(CFLAGS) -c -o $@ $<