blob: 4118fe4562f9128c9bec1ea160dc9fe7072f72c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
SRCS = \
src/fndbyte.S \
src/fndchr.S \
src/memcpy.S \
src/memdup.c \
src/memeq.S \
src/memfill.S \
src/strdup.c \
src/streq.S \
src/strfill.c \
src/strcpy.S \
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 purge
$(LIB): $(OBJS)
ar r $@ $^
clean:
rm -fr $(OBJS)
purge:
rm -fr $(LIB) $(OBJS)
|