You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
369 B
26 lines
369 B
5 months ago
|
DESTDIR =
|
||
|
PREFIX = /usr/local
|
||
|
BINDIR = $(PREFIX)/bin
|
||
|
|
||
|
CC = gcc
|
||
|
LD = $(CC)
|
||
|
|
||
|
CFLAGS = -g -O2 -Wall -Werror -pthread
|
||
|
INCS += -I./include
|
||
|
LIBS = -lpthread -levent -levent_pthreads
|
||
|
|
||
|
OBJS = spoa.o
|
||
|
|
||
|
|
||
|
spoa: $(OBJS)
|
||
|
$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
|
||
|
|
||
|
install: spoa
|
||
|
install spoa $(DESTDIR)$(BINDIR)
|
||
|
|
||
|
clean:
|
||
|
rm -f spoa $(OBJS)
|
||
|
|
||
|
%.o: %.c
|
||
|
$(CC) $(CFLAGS) $(INCS) -c -o $@ $<
|