update on readme
[nao-ulib.git] / src / Makefile
blob4651e2c12282aacf49cf3b650120fd04825350a3
1 CC = gcc
3 WARNINGS = -Wextra -Wall -Wwrite-strings -Wstrict-prototypes \
4 -Wmissing-prototypes -Wno-long-long -Wstrict-aliasing=2
6 CFLAGS += $(WARNINGS)
7 CFLAGS += -g -O2 -Iinclude/nao/
9 target = libnaohtwk
11 OBJS = tlsf.o
13 all: $(OBJS)
14 $(CC) -shared -Wl,-soname,$(target).so.1 -o $(target).so.1.0.1 $(OBJS)
16 %.o: %.c
17 $(CC) -c -fPIC $(CFLAGS) $<
19 clean:
20 $(RM) -rf *.o *~ *.so *.so.1 *.so.1.0.1