3 CFLAGS
+=-std
=gnu99
-Wall
-Werror
-pedantic
-fpic
7 INCLUDE_DIR
=$(PREFIX
)/include/libubox
12 FILES
=blob.c blobmsg.c hash.c uhtbl.c usock.c uloop.c avl.c
16 LDFLAGS_SHARED
=-shared
-Wl
,-soname
,$@
20 LDFLAGS_SHARED
=-dynamiclib
24 all: libubox.
$(SHLIB_EXT
)
26 libubox.
$(SHLIB_EXT
): $(FILES
)
27 $(CC
) $(CFLAGS
) $(CPPFLAGS
) -o
$@
$^
$(LDFLAGS
) $(LIBS
) $(LDFLAGS_SHARED
)
30 mkdir
-p
$(INCLUDE_DIR
)
31 cp
*.h
$(INCLUDE_DIR
)/
35 cp libubox.
$(SHLIB_EXT
) $(LIBDIR
)/
37 install: install-lib install-headers