blob: f1301bf4558419b213912ab612414f4b76329143 (
plain) (
tree)
|
|
SRCS = \
rgo/src/fastimpl.c \
rgo/src/fndbyte.c \
rgo/src/fndchr.c \
rgo/src/memcpy.c \
rgo/src/memdup.c \
rgo/src/memeq.c \
rgo/src/memfill.c \
rgo/src/strdup.c \
rgo/src/streq.c \
rgo/src/strfill.c \
rgo/src/strcpy.c \
rgo/src/strlen.c
OBJS := $(SRCS:.c=.o)
LIB := librgo.a
CFLAGS = \
-Irgo/include \
-Irgo/include-priv \
-O3 \
-g \
-march=native
# Uncomment to disable assembly algorithms:
#CFLAGS += -Drgo_priv_noasm
.PHONY: clean install purge
$(LIB): $(OBJS)
ar r $@ $^
install: $(LIB)
install -Dm644 rgo/include/rgo.h $(HDRDIR)/rgo.h
install -Dm755 $(LIB) $(LIBDIR)/$(LIB)
clean:
rm -fr $(OBJS)
purge:
rm -fr $(LIB) $(OBJS)
|