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