|
Last change
on this file since 512 was
469,
checked in by alain, 7 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:
1.1 KB
|
| Line | |
|---|
| 1 | ############################################################################ |
|---|
| 2 | # Makefile for the "math" library. # |
|---|
| 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 | SRCS = e_pow.c \ |
|---|
| 12 | e_rem_pio2.c \ |
|---|
| 13 | e_sqrt.c \ |
|---|
| 14 | fmod.c \ |
|---|
| 15 | k_cos.c \ |
|---|
| 16 | k_rem_pio2.c \ |
|---|
| 17 | k_sin.c \ |
|---|
| 18 | s_ceil.c \ |
|---|
| 19 | s_copysign.c \ |
|---|
| 20 | s_cos.c \ |
|---|
| 21 | s_fabs.c \ |
|---|
| 22 | s_finite.c \ |
|---|
| 23 | s_floor.c \ |
|---|
| 24 | s_isnan.c \ |
|---|
| 25 | s_rint.c \ |
|---|
| 26 | s_scalbn.c \ |
|---|
| 27 | s_sin.c |
|---|
| 28 | |
|---|
| 29 | OBJS = $(addprefix build/, $(SRCS:.c=.o)) |
|---|
| 30 | |
|---|
| 31 | libs : build/lib/libmath.a headers |
|---|
| 32 | |
|---|
| 33 | build : |
|---|
| 34 | @mkdir build |
|---|
| 35 | @mkdir build/lib |
|---|
| 36 | @mkdir build/include |
|---|
| 37 | |
|---|
| 38 | build/%.o : %.c math.h math_private.h |
|---|
| 39 | $(CC) -I. $(CFLAGS) -c -o $@ $< |
|---|
| 40 | $(DU) -D $@ > $@.txt |
|---|
| 41 | |
|---|
| 42 | headers: build |
|---|
| 43 | cp math.h build/include/. |
|---|
| 44 | |
|---|
| 45 | build/lib/libmath.a: build $(OBJS) |
|---|
| 46 | $(AR) rc $@ $(OBJS) |
|---|
| 47 | $(RANLIB) $@ |
|---|
| 48 | |
|---|
| 49 | .PHONY = build clean headers |
|---|
| 50 | |
|---|
| 51 | clean: |
|---|
| 52 | rm -rf build/ |
|---|
Note: See
TracBrowser
for help on using the repository browser.