Added Makefile

Aadhavan Srinivasan 2 years ago
parent 5b97a27a8e
commit d9ca0819a1

@ -0,0 +1,17 @@
CC=gcc
CFLAGS=
LIB_FILE = libeasysock.so
$(LIB_FILE): easysock.o
$(CC) -shared easysock.o -o $(LIB_FILE)
easysock.o: easysock.c easysock.h
$(CC) -fpic -c easysock.c -o easysock.o
allwarn: CFLAGS+=-Wall -Wextra -pedantic
allwarn: $(LIB_FILE)
debug: CFLAGS+=-g
debug: $(LIB_FILE)
Loading…
Cancel
Save