source: trunk/user/sort/Makefile @ 566

Last change on this file since 566 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
RevLine 
[417]1############################################################################
[459]2# Makefile for the "sort" application running on ALMOS-MKH
[417]3############################################################################
4
[439]5-include ../../params-soft.mk
[440]6
[439]7ifeq ($(ARCH_NAME),)
8$(error Please define in ARCH_NAME parameter in params-soft.mk!)
9endif
[417]10
[439]11OBJS = build/sort.o
[417]12
[445]13INCLUDES = -I.                      \
14           -I$(LIBC_INCLUDE)        \
15           -I$(LIBPTHREAD_INCLUDE)  \
16           -I$(LIBALMOSMKH_INCLUDE) \
[459]17           -I$(SHARED_INCLUDE)      \
18           -I$(HAL_INCLUDE)
[417]19
[439]20compile: dirs build/sort.elf
[440]21
[439]22build/sort.elf : $(OBJS) sort.ld
[459]23        $(LD) -o $@ -T sort.ld $(OBJS) -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) \
24        -lc -lpthread -lalmosmkh -lpthread -lc
[417]25        $(DU) -D $@ > $@.txt
26
[439]27build/sort.o : sort.c
[417]28        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
29
[439]30dirs:
31        @mkdir -p build/
[417]32
[439]33clean:
[440]34        rm -rf build/*.o  build/*.elf  build/*.txt
[417]35
[439]36.PHONY: dirs clean
[417]37
Note: See TracBrowser for help on using the repository browser.