Last change
on this file since 444 was
444,
checked in by satin@…, 7 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
868 bytes
|
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 | |
---|
[444] | 13 | INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBALMOSMKH_INCLUDE) -I$(SHARED_INCLUDE) -I$(LIBPTHREAD_INCLUDE) |
---|
[442] | 14 | |
---|
| 15 | compile: dirs build/idbg.elf |
---|
| 16 | |
---|
| 17 | build/idbg.elf : $(OBJS) idbg.ld |
---|
[444] | 18 | $(LD) -o $@ -T idbg.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -lpthread -lc -lalmos-mkh -lc -lpthread -lc -lalmos-mkh -lpthread -lc |
---|
[442] | 19 | $(DU) -D $@ > $@.txt |
---|
| 20 | |
---|
| 21 | build/idbg.o : idbg.c |
---|
| 22 | $(CC) $(INCLUDES) -L$(LIBC) $(CFLAGS) -c -o $@ $< |
---|
| 23 | |
---|
| 24 | dirs: |
---|
| 25 | @mkdir -p build/ |
---|
| 26 | |
---|
| 27 | clean: |
---|
| 28 | rm -rf build/*.o build/*.elf build/*.txt |
---|
| 29 | |
---|
| 30 | .PHONY: dirs clean |
---|
| 31 | |
---|
| 32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.