summaryrefslogtreecommitdiff
path: root/package/libs/libnl-tiny/src/Makefile
blob: f6f90ec7fe689618cc5e6562f16f0b931cdcb029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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) -shared -o $@ $^