Started working on 'static' and 'install' rules

Aadhavan Srinivasan 2 years ago
parent b5dc08e072
commit b91a2e5996

@ -2,11 +2,11 @@ CC=gcc
CFLAGS= CFLAGS=
LIB_FILE = libeasysock.so LIB_FILE = libeasysock.so
$(LIB_FILE): easysock.o all: easysock.o
$(CC) -shared easysock.o -o $(LIB_FILE) $(CC) $(CFLAGS) -shared easysock.o -o $(LIB_FILE)
easysock.o: easysock.c easysock.h 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: CFLAGS+=-Wall -Wextra -pedantic
allwarn: $(LIB_FILE) allwarn: $(LIB_FILE)
@ -14,4 +14,8 @@ allwarn: $(LIB_FILE)
debug: CFLAGS+=-g debug: CFLAGS+=-g
debug: $(LIB_FILE) debug: $(LIB_FILE)
static:
install:

Loading…
Cancel
Save