source: trunk/user/sort/Makefile @ 445

Last change on this file since 445 was 445, checked in by alain, 5 years ago

Restructure the mini_libc.

File size: 894 bytes
RevLine 
[417]1############################################################################
[439]2# Makefile for the ALMOS-MKH "sort" application
[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) \
17           -I$(SHARED_INCLUDE)
[417]18
[439]19compile: dirs build/sort.elf
[440]20
[439]21build/sort.elf : $(OBJS) sort.ld
[445]22        $(LD) -o $@ -T sort.ld $(OBJS) -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -lc -lpthread -lalmosmkh -lpthread -lc
[417]23        $(DU) -D $@ > $@.txt
24
[439]25build/sort.o : sort.c
[417]26        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
27
[439]28dirs:
29        @mkdir -p build/
[417]30
[439]31clean:
[440]32        rm -rf build/*.o  build/*.elf  build/*.txt
[417]33
[439]34.PHONY: dirs clean
[417]35
Note: See TracBrowser for help on using the repository browser.