1CC ?= cc
2AR ?= ar
3RM ?= rm -f
4
5OBJS := 9p/util.o 9p/9p.o
6OBJS += $(patsubst %.c,%.o,$(wildcard compat/POSIX/*.c))
7
8CFLAGS ?= -O0 -g
9CFLAGS += -Iinclude -Icompat/include/POSIX
10CFLAGS += -std=c99 -D_XOPEN_SOURCE -Wpedantic -Wall -Wextra -Werror
11
12ninenano.a: $(OBJS)
13 $(AR) rcs $@ $?
14
15clean:
16 $(RM) $(OBJS) ninenano.a