Added Makefile
This commit is contained in:
17
Makefile
Normal file
17
Makefile
Normal 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)
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user