zapret/tpws/BSDmakefile

14 lines
357 B
Makefile
Raw Normal View History

2021-03-04 11:30:38 +00:00
CC ?= cc
CFLAGS += -std=gnu99 -s -O3 -Wno-logical-op-parentheses
LIBS = -lz
SRC_FILES = *.c
all: tpws
tpws: $(SRC_FILES)
$(CC) $(CFLAGS) -Iepoll-shim/include -o $@ $(SRC_FILES) epoll-shim/src/*.c $(LDFLAGS) $(LIBS)
2022-01-23 11:45:39 +00:00
$(CC) $(CFLAGS) -Iepoll-shim/include -o $@_pf $(SRC_FILES) -DUSE_PF epoll-shim/src/*.c $(LDFLAGS) $(LIBS)
2021-03-04 11:30:38 +00:00
clean:
2022-01-23 11:45:39 +00:00
rm -f tpws tpws_pf *.o