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