|
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:
948 bytes
|
| Rev | Line | |
|---|
| [427] | 1 | ######################################################################### |
|---|
| [439] | 2 | # Makefile for the ALMOS-MKH "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 | |
|---|
| [444] | 13 | INCLUDES = -I. \ |
|---|
| 14 | -I../.. \ |
|---|
| 15 | -I$(LIBC_INCLUDE)/ \ |
|---|
| 16 | -I$(LIBPTHREAD_INCLUDE) \ |
|---|
| 17 | -I$(LIBALMOSMKH_INCLUDE) \ |
|---|
| 18 | -I$(SHARED_INCLUDE) |
|---|
| [427] | 19 | |
|---|
| [439] | 20 | compile : dirs build/init.elf |
|---|
| 21 | build/init.elf : $(OBJS) init.ld |
|---|
| [444] | 22 | $(LD) -o $@ -T init.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -lc -lpthread -lalmos-mkh -lpthread -lc |
|---|
| [427] | 23 | $(DU) -D $@ > $@.txt |
|---|
| 24 | |
|---|
| [439] | 25 | build/init.o : init.c |
|---|
| [427] | 26 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
|---|
| 27 | $(DU) -D $@ > $@.txt |
|---|
| 28 | |
|---|
| [439] | 29 | dirs: |
|---|
| 30 | @mkdir -p build |
|---|
| [427] | 31 | |
|---|
| [439] | 32 | clean: |
|---|
| [440] | 33 | rm -rf build/*.o build/*.elf build/*.txt |
|---|
| [427] | 34 | |
|---|
| [439] | 35 | .PHONY: dirs clean |
|---|
| [427] | 36 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.