source: trunk/libs/libmath/Makefile @ 539

Last change on this file since 539 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: 1.1 KB
Line 
1############################################################################
2#          Makefile for the "math" library.                                #
3############################################################################
4
5-include ../../params-soft.mk
6
7ifeq ($(ARCH_NAME),)
8$(error Please define in ARCH_NAME parameter in params-soft.mk!)
9endif
10
11SRCS = 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
29OBJS = $(addprefix build/, $(SRCS:.c=.o))
30
31libs : build/lib/libmath.a  headers
32
33build :
34        @mkdir build
35        @mkdir build/lib
36        @mkdir build/include
37
38build/%.o : %.c  math.h  math_private.h
39        $(CC) -I. $(CFLAGS) -c -o  $@ $<
40        $(DU) -D $@ > $@.txt
41
42headers: build
43        cp math.h   build/include/.
44
45build/lib/libmath.a: build $(OBJS)
46        $(AR) rc $@ $(OBJS)
47        $(RANLIB) $@
48
49.PHONY = build clean headers
50
51clean:
52        rm -rf build/
Note: See TracBrowser for help on using the repository browser.