Last change
on this file since 440 was
440,
checked in by alain, 7 years ago
|
1/ Fix a bug in the Multithreaded "sort" applicationr:
The pthread_create() arguments must be declared as global variables.
2/ The exit syscall can be called by any thread of a process..
|
File size:
697 bytes
|
Line | |
---|
1 | ############################################################################ |
---|
2 | # Makefile for the ALMOS-MKH "pgcd" 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/pgcd.o |
---|
12 | |
---|
13 | INCLUDES = -I. -I$(LIBC_INCLUDE) |
---|
14 | |
---|
15 | compile: dirs build/pgcd.elf |
---|
16 | |
---|
17 | build/pgcd.elf : $(OBJS) pgcd.ld |
---|
18 | $(LD) -o $@ -T pgcd.ld $(OBJS) -nostdlib -L$(LIBC) -lc |
---|
19 | $(DU) -D $@ > $@.txt |
---|
20 | |
---|
21 | build/pgcd.o : pgcd.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.