tskrtt

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

Makefile (529B)


      1 LIBEV_CFLAGS =
      2 LIBEV_LIBS = -lev
      3 TLS_CFLAGS = -I/usr/local/include -DUSE_TLS
      4 TLS_LIBS = -L/usr/local/lib -ltls
      5 LDFLAGS = ${LIBEV_LIBS} ${TLS_LIBS}
      6 CFLAGS = -W -Wall -std=c99 -DUSE_TLS
      7 SOURCES = main.c task.c client.c
      8 OBJS = ${SOURCES:.c=.o}
      9 
     10 all: tskrtt
     11 
     12 tskrtt: ${OBJS}
     13 	${CC} ${CFLAGS} -o $@ ${OBJS} ${LDFLAGS} ${LIBEV_LIBS} ${TLS_LIBS}
     14 
     15 .c.o:
     16 	${CC} ${CFLAGS} ${LIBEV_CFLAGS} ${TLS_CFLAGS} -c $< -o $@
     17 
     18 clean:
     19 	rm -f ${OBJS}
     20 
     21 client.o: client.h common.h task.h
     22 main.o: arg.h client.h common.h
     23 task.o: common.h client.h task.h