source: trunk/libs/libsemaphore/Makefile @ 528

Last change on this file since 528 was 469, checked in by alain, 4 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 "semaphore" 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
11OBJS = build/semaphore.o                  \
12       $(HAL_ARCH)/build/core/hal_user.o
13
14INCLUDES = -I.                     \
15           -I$(LIBC_PATH)          \
16           -I$(LIBALMOSMKH_PATH)   \
17           -I$(SHARED_INCLUDE)     \
18           -I$(HAL)/generic        \
19           -I$(HAL_ARCH)/core      \
20           -I$(KERNEL) 
21
22libs : build/lib/libsemaphore.a  headers
23
24build :
25        @mkdir build
26        @mkdir build/lib
27        @mkdir build/include
28
29$(HAL_ARCH)/build/core/hal_user.o :
30        $(MAKE) -C $(HAL_ARCH)
31
32build/%.o : %.c %.h
33        $(CC) $(INCLUDES) $(CFLAGS) -c -o  $@ $<
34        $(DU) -D $@ > $@.txt
35
36headers: build
37        cp semaphore.h  build/include/.
38
39
40build/lib/libsemaphore.a: build  $(OBJS)
41        $(AR) rc $@ $(OBJS) 
42        $(RANLIB) $@
43
44.PHONY = build clean headers
45
46
47clean:
48        rm -rf build/
Note: See TracBrowser for help on using the repository browser.