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