Added Makefile

This commit is contained in:
2023-03-24 10:21:17 -05:00
parent 5b97a27a8e
commit d9ca0819a1

17
Makefile Normal file
View File

@@ -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)