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