tskrtt

Simple libev based gopher server
git clone https://git.inz.fi/tskrtt/
Log | Files | Refs | README

commit d6e276314557bc4923d0b9427ed9f3595abab94b
parent 9df4a34aa3c9c269d3b8dd25a4d33c055484bb2f
Author: Santtu Lakkala <inz@inz.fi>
Date:   Mon, 17 May 2021 16:18:38 +0300

Portable Makefile

Diffstat:
MMakefile | 16+++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,13 +1,15 @@ -LDFLAGS += -lev -ltls -CFLAGS += -W -Wall -std=c99 -DUSE_TLS -g -O0 +LDFLAGS = -L/usr/local/lib -lev -ltls +CFLAGS = -W -Wall -std=c99 -DUSE_TLS -I/usr/local/include SOURCES := main.c -OBJS := $(patsubst %.c,%.o,$(SOURCES)) +OBJS := ${SOURCES:.c=.o} all: tskrtt -tskrtt: $(OBJS) - $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS) +tskrtt: ${OBJS} + ${CC} ${CFLAGS} -o $@ ${OBJS} ${LDFLAGS} +.c.o: + ${CC} ${CFLAGS} -c $< -o $@ -%.o: %.c - $(CC) $(CFLAGS) -c $< -o $@ +clean: + rm -f ${OBJS}