mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-09 16:19:34 +00:00
6e3b087de8
Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46029
18 lines
395 B
Makefile
18 lines
395 B
Makefile
CC=gcc
|
|
WFLAGS=-Wall
|
|
CFLAGS=-O2
|
|
INCLUDES=-Iinclude
|
|
|
|
LIBNAME=libnl-tiny.so
|
|
|
|
all: $(LIBNAME)
|
|
|
|
%.o: %.c
|
|
$(CC) $(WFLAGS) -c -o $@ $(INCLUDES) $(CFLAGS) $<
|
|
|
|
LIBNL_OBJ=nl.o handlers.o msg.o attr.o cache.o cache_mngt.o object.o socket.o error.o
|
|
GENL_OBJ=genl.o genl_family.o genl_ctrl.o genl_mngt.o unl.o
|
|
|
|
$(LIBNAME): $(LIBNL_OBJ) $(GENL_OBJ)
|
|
$(CC) $(CFLAGS) -Wl,-Bsymbolic-functions -shared -o $@ $^
|