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:
756 bytes
|
Line | |
---|
1 | ############################################################################ |
---|
2 | # Makefile for the ALMOS-MKH "sort" 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/sort.o |
---|
11 | |
---|
12 | INCLUDES = -I. -I$(LIBC_INCLUDE) -I$(LIBPTHREAD_INCLUDE) |
---|
13 | |
---|
14 | compile: dirs build/sort.elf |
---|
15 | build/sort.elf : $(OBJS) sort.ld |
---|
16 | $(LD) -o $@ -T sort.ld $(OBJS) -nostdlib -L$(LIBC) -L$(LIBPTHREAD) -lc -lpthread |
---|
17 | $(DU) -D $@ > $@.txt |
---|
18 | |
---|
19 | build/sort.o : sort.c |
---|
20 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
---|
21 | $(DU) -D $@ > $@.txt |
---|
22 | |
---|
23 | dirs: |
---|
24 | @mkdir -p build/ |
---|
25 | |
---|
26 | clean: |
---|
27 | rm -rf build/*.o build/*.elf build/*.o.txt |
---|
28 | |
---|
29 | .PHONY: dirs clean |
---|
30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.