source: trunk/user/sort/Makefile @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 810 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
[444]13INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBPTHREAD_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE)
[417]14
[439]15compile: dirs build/sort.elf
[440]16
[439]17build/sort.elf : $(OBJS) sort.ld
[444]18        $(LD) -o $@ -T sort.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -lpthread -lalmos-mkh -lc
[417]19        $(DU) -D $@ > $@.txt
20
[439]21build/sort.o : sort.c
[417]22        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
23
[439]24dirs:
25        @mkdir -p build/
[417]26
[439]27clean:
[440]28        rm -rf build/*.o  build/*.elf  build/*.txt
[417]29
[439]30.PHONY: dirs clean
[417]31
Note: See TracBrowser for help on using the repository browser.