added process scheduling routines
[nao-ulib.git] / src / Makefile
blob2f97fd7ac17190fc2e68231b5a11b5da992dc906
1 CC = gcc
3 WARNINGS = -Wall -Wstrict-prototypes \
4 -Wmissing-prototypes -Wno-long-long \
5 -Wstrict-aliasing=2
7 # -Wwrite-strings
9 CFLAGS += $(WARNINGS)
10 CFLAGS += -g -O2 -Iinclude/nao/
12 target = libnaohtwk
14 OBJS = tlsf.o strlcpy.o xmalloc.o mmap_v4l.o notifier.o urcu.o \
15 urcu-asm.o rbtree.o i2c_cam.o psched.o
17 all: $(OBJS)
18 $(CC) -shared -Wl,-soname,$(target).so.1 -o $(target).so.1.0.1 $(OBJS)
20 %.o: %.c
21 $(CC) -c -fPIC $(CFLAGS) $<
23 clean:
24 $(RM) -rf *.o *~ *.so *.so.1 *.so.1.0.1