source: trunk/user/init/Makefile @ 563

Last change on this file since 563 was 445, checked in by alain, 6 years ago

Restructure the mini_libc.

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