-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 767 Bytes
/
Makefile
File metadata and controls
32 lines (22 loc) · 767 Bytes
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
OBJS-V6L = memcmp-v6l.o memcpymove-v6l.o memset-v6l.o
OBJS-V7L = memcmp-v7l.o memcpymove-v7l.o memset-v7l.o strlen-v7l.o
CFLAGS += -std=gnu99 -O2 -fno-inline
all: libarmmem-v6l.so libarmmem-v6l.a libarmmem-v7l.so libarmmem-v7l.a test test-strlen
%.o: %.c
$(CROSS_COMPILE)gcc $(CFLAGS) -c -o $@ $^
%.o: %.S
$(CROSS_COMPILE)gcc -c -o $@ $^
libarmmem-v6l.so: $(OBJS-V6L)
$(CROSS_COMPILE)gcc -shared -o $@ -Wl,-soname,$@ $^
libarmmem-v6l.a: $(OBJS-V6L)
$(CROSS_COMPILE)ar rcs $@ $^
libarmmem-v7l.so: $(OBJS-V7L)
$(CROSS_COMPILE)gcc -shared -o $@ -Wl,-soname,$@ $^
libarmmem-v7l.a: $(OBJS-V7L)
$(CROSS_COMPILE)ar rcs $@ $^
test: test.o
$(CROSS_COMPILE)gcc -o $@ $^
test-strlen: test-strlen.o
$(CROSS_COMPILE)gcc -o $@ $^
clean:
rm -rf *.o *.so *.a test