Last change
on this file since 439 was
439,
checked in by satin@…, 6 years ago
|
Introduice new distributed Makefile architecture.
Remove deprecated sys/ directory
|
File size:
835 bytes
|
Rev | Line | |
---|
[427] | 1 | ######################################################################### |
---|
[439] | 2 | # Makefile for the ALMOS-MKH "init" application |
---|
[427] | 3 | ######################################################################### |
---|
| 4 | |
---|
[439] | 5 | -include ../../params-soft.mk |
---|
| 6 | ifeq ($(ARCH_NAME),) |
---|
| 7 | $(error Please define in ARCH_NAME parameter in params-soft.mk!) |
---|
| 8 | endif |
---|
[427] | 9 | |
---|
[439] | 10 | OBJS = build/init.o |
---|
[427] | 11 | |
---|
| 12 | INCLUDES = -I. \ |
---|
| 13 | -I../.. \ |
---|
[439] | 14 | -I$(LIBC_INCLUDE)/ \ |
---|
| 15 | -I$(LIBPTHREAD_INCLUDE) \ |
---|
[427] | 16 | |
---|
[439] | 17 | compile : dirs build/init.elf |
---|
| 18 | build/init.elf : $(OBJS) init.ld |
---|
| 19 | $(LD) -o $@ -T init.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -lc -lpthread |
---|
[427] | 20 | $(DU) -D $@ > $@.txt |
---|
| 21 | |
---|
[439] | 22 | build/init.o : init.c |
---|
[427] | 23 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
---|
| 24 | $(DU) -D $@ > $@.txt |
---|
| 25 | |
---|
[439] | 26 | dirs: |
---|
| 27 | @mkdir -p build |
---|
[427] | 28 | |
---|
[439] | 29 | clean: |
---|
| 30 | rm -rf build/*.o build/*.elf build/*.o.txt |
---|
[427] | 31 | |
---|
[439] | 32 | .PHONY: dirs clean |
---|
[427] | 33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.