You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
318 B
Makefile

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: