From b91a2e599626c62e3c8d36a1993dedbf55496fbe Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Fri, 24 Mar 2023 10:28:21 -0500 Subject: [PATCH] Started working on 'static' and 'install' rules --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b4a9549..08092fe 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,11 @@ CC=gcc CFLAGS= LIB_FILE = libeasysock.so -$(LIB_FILE): easysock.o - $(CC) -shared easysock.o -o $(LIB_FILE) +all: easysock.o + $(CC) $(CFLAGS) -shared easysock.o -o $(LIB_FILE) easysock.o: easysock.c easysock.h - $(CC) -fpic -c easysock.c -o easysock.o + $(CC) $(CFLAGS) -fpic -c easysock.c -o easysock.o allwarn: CFLAGS+=-Wall -Wextra -pedantic allwarn: $(LIB_FILE) @@ -14,4 +14,8 @@ allwarn: $(LIB_FILE) debug: CFLAGS+=-g debug: $(LIB_FILE) +static: + +install: +