Last change
on this file since 638 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
|
Rev | Line | |
---|
[469] | 1 | ############################################################################ |
---|
| 2 | # Makefile for the "semaphore" 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 | OBJS = build/semaphore.o \ |
---|
| 12 | $(HAL_ARCH)/build/core/hal_user.o |
---|
| 13 | |
---|
| 14 | INCLUDES = -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 | |
---|
| 22 | libs : build/lib/libsemaphore.a headers |
---|
| 23 | |
---|
| 24 | build : |
---|
| 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 | |
---|
| 32 | build/%.o : %.c %.h |
---|
| 33 | $(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $< |
---|
| 34 | $(DU) -D $@ > $@.txt |
---|
| 35 | |
---|
| 36 | headers: build |
---|
| 37 | cp semaphore.h build/include/. |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | build/lib/libsemaphore.a: build $(OBJS) |
---|
| 41 | $(AR) rc $@ $(OBJS) |
---|
| 42 | $(RANLIB) $@ |
---|
| 43 | |
---|
| 44 | .PHONY = build clean headers |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | clean: |
---|
| 48 | rm -rf build/ |
---|
Note: See
TracBrowser
for help on using the repository browser.