source: trunk/user/init/Makefile @ 439

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

Introduice new distributed Makefile architecture.
Remove deprecated sys/ directory

File size: 835 bytes
RevLine 
[427]1#########################################################################
[439]2# Makefile for the ALMOS-MKH "init" application
[427]3#########################################################################
4
[439]5-include ../../params-soft.mk
6ifeq ($(ARCH_NAME),)
7$(error Please define in ARCH_NAME parameter in params-soft.mk!)
8endif
[427]9
[439]10OBJS = build/init.o
[427]11
12INCLUDES = -I.                   \
13           -I../..               \
[439]14           -I$(LIBC_INCLUDE)/    \
15           -I$(LIBPTHREAD_INCLUDE) \
[427]16
[439]17compile : dirs build/init.elf
18build/init.elf : $(OBJS) init.ld
19        $(LD) -o $@ -T init.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -lc -lpthread
[427]20        $(DU) -D $@ > $@.txt
21
[439]22build/init.o : init.c
[427]23        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
24        $(DU) -D $@ > $@.txt
25
[439]26dirs:
27        @mkdir -p build
[427]28
[439]29clean:
30        rm -rf build/*.o build/*.elf build/*.o.txt
[427]31
[439]32.PHONY: dirs clean
[427]33
Note: See TracBrowser for help on using the repository browser.