source: trunk/user/init/Makefile @ 439

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

Introduice new distributed Makefile architecture.
Remove deprecated sys/ directory

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