blob: 02800e0f115cdf8fe5ec2c3b65f3888b97292761 (
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
|
SRCS_ASM = \
src/fndbyte.S \
src/fndchr.S \
src/memcpy.S \
src/memeq.S \
src/memfill.S \
src/streq.S \
src/strcpy.S \
src/strlen.S
SRCS_C = \
src/memdup.c \
src/strdup.c \
src/strfill.c
OBJS_ASM := $(SRCS_ASM:.S=.o)
OBJS_C := $(SRCS_C:.c=.o)
OBJS := $(OBJS_ASM) $(OBJS_C)
LIB := librgo.a
ASFLAGS = \
-Iinclude \
-g
CFLAGS = \
-Iinclude \
-g
.PHONY: clean purge
$(LIB): $(OBJS)
ar r $@ $^
clean:
rm -fr $(OBJS)
purge:
rm -fr $(LIB) $(OBJS)
|