Compare commits

...

3 Commits

Author SHA1 Message Date
b91a2e5996 Started working on 'static' and 'install' rules 2023-03-24 10:28:21 -05:00
b5dc08e072 Added gitignore file 2023-03-24 10:21:55 -05:00
d9ca0819a1 Added Makefile 2023-03-24 10:21:17 -05:00
2 changed files with 23 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*.o
*.so

21
Makefile Normal file
View 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: