Last change
on this file since 558 was
459,
checked in by alain, 6 years ago
|
Introduce the math library, to support the floating point
data used by the multi-thread fft application.
Fix several bugs regarding the FPU context save/restore.
Introduce support for the %f format in printf.
|
File size:
950 bytes
|
Line | |
---|
1 | ############################################################################ |
---|
2 | # Makefile for the "sort" application running on ALMOS-MKH |
---|
3 | ############################################################################ |
---|
4 | |
---|
5 | -include ../../params-soft.mk |
---|
6 | |
---|
7 | ifeq ($(ARCH_NAME),) |
---|
8 | $(error Please define in ARCH_NAME parameter in params-soft.mk!) |
---|
9 | endif |
---|
10 | |
---|
11 | OBJS = build/sort.o |
---|
12 | |
---|
13 | INCLUDES = -I. \ |
---|
14 | -I$(LIBC_INCLUDE) \ |
---|
15 | -I$(LIBPTHREAD_INCLUDE) \ |
---|
16 | -I$(LIBALMOSMKH_INCLUDE) \ |
---|
17 | -I$(SHARED_INCLUDE) \ |
---|
18 | -I$(HAL_INCLUDE) |
---|
19 | |
---|
20 | compile: dirs build/sort.elf |
---|
21 | |
---|
22 | build/sort.elf : $(OBJS) sort.ld |
---|
23 | $(LD) -o $@ -T sort.ld $(OBJS) -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) \ |
---|
24 | -lc -lpthread -lalmosmkh -lpthread -lc |
---|
25 | $(DU) -D $@ > $@.txt |
---|
26 | |
---|
27 | build/sort.o : sort.c |
---|
28 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
---|
29 | |
---|
30 | dirs: |
---|
31 | @mkdir -p build/ |
---|
32 | |
---|
33 | clean: |
---|
34 | rm -rf build/*.o build/*.elf build/*.txt |
---|
35 | |
---|
36 | .PHONY: dirs clean |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.