do not call clean every time
@@ -90,14 +90,14 @@ libnss-kadnode.so.2:
$(CC) $(CFLAGS) -fPIC -c -o build/ext-libnss.o src/ext-libnss.c
$(CC) $(CFLAGS) -fPIC -shared -Wl,-soname,libnss_kadnode.so.2 -o build/libnss_kadnode.so.2 build/ext-libnss.o
-libkadnode.a: clean build/libkadnode.o $(OBJS)
+libkadnode.a: build/libkadnode.o $(OBJS)
ar rcs build/libkadnode.a build/libkadnode.o $(OBJS)
libkadnode.so: CFLAGS += -fpic
-libkadnode.so: clean build/libkadnode.o $(OBJS)
+libkadnode.so: build/libkadnode.o $(OBJS)
$(CC) -shared $(OBJS) build/libkadnode.o -o build/libkadnode.so
-kadnode: clean build/main.o $(OBJS) $(EXTRA)
+kadnode: build/main.o $(OBJS) $(EXTRA)
$(CC) build/main.o $(OBJS) -o build/kadnode $(LFLAGS)
clean:
