make rule to make library
authorEugene Crosser <evgenii.cherkashin@cloud.ionos.com>
Wed, 13 Mar 2019 13:31:59 +0000 (14:31 +0100)
committerEugene Crosser <evgenii.cherkashin@cloud.ionos.com>
Wed, 13 Mar 2019 13:31:59 +0000 (14:31 +0100)
Signed-off-by: Eugene Crosser <evgenii.cherkashin@profitbricks.com>
.gitignore
src/Makefile

index 5761abcfdf0c26a75374c945dfe366eaeee04285..e0292b19e02062719bd1faf3c99458607a828a6a 100644 (file)
@@ -1 +1,2 @@
 *.o
+*.a
index 03469ce5ba217b414a7d2d55a2b066dc0d5f79d1..2ce7e75d8d4841d4349fbf932c8f055ce3066d21 100644 (file)
@@ -1,7 +1,11 @@
 CFLAGS = -pthread -Wall -I../include
+ARFLAGS = rcsv
 
-all: libpsmb.a
+LIB = libpsmb.a
+OBJ = psmb_socket.o
 
-libpsmb.a: psmb_socket.o
+all: $(LIB)
 
-psmb_socket.o: psmb_socket.c psmb_priv.h
+$(LIB): $(LIB)($(OBJ))
+
+psmb_socket.o: psmb_socket.c psmb_priv.h ../include/psmb.h