Last change
on this file since 559 was
469,
checked in by alain, 6 years ago
|
1) Introduce the libsemaphore library.
2) Introduce a small libmath library, required by the "fft" application..
3) Introduce the multithreaded "fft" application.
4) Fix a bad synchronisation bug in the Copy-On-Write mechanism.
|
File size:
997 bytes
|
Line | |
---|
1 | ############################################################################ |
---|
2 | # Makefile for "fft" application running on ALMOS-MKH |
---|
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/fft.o |
---|
12 | |
---|
13 | INCLUDES = -I. \ |
---|
14 | -I$(LIBMATH_INCLUDE) \ |
---|
15 | -I$(LIBC_INCLUDE) \ |
---|
16 | -I$(LIBPTHREAD_INCLUDE) \ |
---|
17 | -I$(LIBALMOSMKH_INCLUDE) \ |
---|
18 | -I$(SHARED_INCLUDE) \ |
---|
19 | -I$(HAL_INCLUDE) |
---|
20 | |
---|
21 | compile: dirs build/fft.elf |
---|
22 | |
---|
23 | build/fft.elf : $(OBJS) fft.ld |
---|
24 | $(LD) -o $@ -T fft.ld $(OBJS) -L$(LIBC) -L$(LIBPTHREAD) -L$(LIBALMOSMKH) -L$(LIBMATH) \ |
---|
25 | -lc -lpthread -lalmosmkh -lpthread -lc -lmath |
---|
26 | $(DU) -D $@ > $@.txt |
---|
27 | |
---|
28 | build/fft.o : fft.c |
---|
29 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
---|
30 | |
---|
31 | dirs: |
---|
32 | @mkdir -p build/ |
---|
33 | |
---|
34 | clean: |
---|
35 | rm -rf build/*.o build/*.elf build/*.txt |
---|
36 | |
---|
37 | .PHONY: dirs clean |
---|
38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.