source: trunk/user/init/Makefile @ 612

Last change on this file since 612 was 574, checked in by alain, 6 years ago

Cosmetic.

File size: 983 bytes
RevLine 
[427]1#########################################################################
[445]2# Makefile for the "init" application
[427]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
[427]10
[439]11OBJS = build/init.o
[427]12
[445]13INCLUDES = -I.                      \
14           -I../..                  \
15           -I$(LIBC_INCLUDE)        \
16           -I$(LIBPTHREAD_INCLUDE)  \
[444]17           -I$(LIBALMOSMKH_INCLUDE) \
[574]18           -I$(SHARED_INCLUDE)      \
19           -I$(HAL_INCLUDE)
[427]20
[439]21compile : dirs build/init.elf
[445]22
[439]23build/init.elf : $(OBJS) init.ld
[574]24        $(LD) -o $@ -T init.ld $(OBJS) -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) \
25        -lc -lpthread -lalmosmkh -lpthread -lc
[427]26        $(DU) -D $@ > $@.txt
27
[439]28build/init.o : init.c
[427]29        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
30        $(DU) -D $@ > $@.txt
31
[439]32dirs:
33        @mkdir -p build
[427]34
[439]35clean:
[440]36        rm -rf build/*.o  build/*.elf  build/*.txt
[427]37
[439]38.PHONY: dirs clean
[427]39
Note: See TracBrowser for help on using the repository browser.