Compare commits
3 Commits
5b97a27a8e
...
b91a2e5996
Author | SHA1 | Date | |
---|---|---|---|
b91a2e5996 | |||
b5dc08e072 | |||
d9ca0819a1 |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*.o
|
||||||
|
*.so
|
21
Makefile
Normal file
21
Makefile
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
CC=gcc
|
||||||
|
CFLAGS=
|
||||||
|
LIB_FILE = libeasysock.so
|
||||||
|
|
||||||
|
all: easysock.o
|
||||||
|
$(CC) $(CFLAGS) -shared easysock.o -o $(LIB_FILE)
|
||||||
|
|
||||||
|
easysock.o: easysock.c easysock.h
|
||||||
|
$(CC) $(CFLAGS) -fpic -c easysock.c -o easysock.o
|
||||||
|
|
||||||
|
allwarn: CFLAGS+=-Wall -Wextra -pedantic
|
||||||
|
allwarn: $(LIB_FILE)
|
||||||
|
|
||||||
|
debug: CFLAGS+=-g
|
||||||
|
debug: $(LIB_FILE)
|
||||||
|
|
||||||
|
static:
|
||||||
|
|
||||||
|
install:
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user