summaryrefslogblamecommitdiff
path: root/Makefile
blob: 23f7bdf0a770442585164a193549ae33ec2d9004 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                           
 






















                                                        

      
                      

      
                             
SRCS = \
	rgo/src/fndbyte.S \
	rgo/src/fndchr.S \
	rgo/src/memcpy.S \
	rgo/src/memdup.c \
	rgo/src/memeq.S \
	rgo/src/memfill.S \
	rgo/src/strdup.c \
	rgo/src/streq.S \
	rgo/src/strfill.c \
	rgo/src/strcpy.S \
	rgo/src/strlen.S

OBJS := $(SRCS:.S=.o)
OBJS := $(OBJS:.c=.o)
LIB  := librgo.a

ASFLAGS = \
	-Iinclude \
	-g \
	-march=native

CFLAGS = \
	-Iinclude \
	-O3 \
	-g \
	-march=native

.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)