You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
354 B
17 lines
354 B
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
|
|
|
|
$(LIBNAME): $(LIBNL_OBJ) $(GENL_OBJ)
|
|
$(CC) -shared -o $@ $^
|
|
|