]> rtime.felk.cvut.cz Git - frescor/fosa.git/blob - src_partikle/Makefile
49aa97f34456bc8529ce5d0089c04d8526080af3
[frescor/fosa.git] / src_partikle / Makefile
1 SOURCES = $(wildcard *.c)
2 NAMES = $(basename $(SOURCES))
3 OBJS = $(addsuffix .o,$(NAMES))
4
5 FOSA_INC=../include
6 FRSH_INC=../../../frsh/trunk/include
7 PRTK_INC=../../../partikle/user/ulibc/include
8
9 # Hack to avoid missing rtl_timer.h compilation issue
10 RTL_TIMER_INC=.
11
12 CFLAGS+=-I$(FOSA_INC) -I$(FRSH_INC) -DRT_LINUX -I$(PRTK_INC) -I$(RTL_TIMER_INC)
13
14 LIBFOSA=libfosa_PARTIKLE.a
15
16
17
18 all: libfosa.a
19
20 libfosa.a: $(OBJS)
21         $(AR) -r $(LIBFOSA) $(OBJS)
22         cp $(LIBFOSA) ../lib
23
24 # test_fosa_c.o: test_fosa.o
25 #       ld -r -o test_fosa_c.o test_fosa.o $(LIBFOSA)
26
27 # test_fosa.o: test_fosa.c
28
29 clean:
30         $(RM) -f *.o *~ *.a