nbeng

a non-blocking client/server engine
git clone git://git.2f30.org/nbeng
Log | Files | Refs | README

Makefile (354B)


      1 BIN = nbeng
      2 VER = 0.1-alpha
      3 SRC = nbeng.c
      4 OBJ = ${SRC:.c=.o}
      5 
      6 CC = gcc
      7 
      8 INCS = -I/usr/local/include
      9 LIBS = -L/usr/local/lib
     10 
     11 CFLAGS += -Wall -Wextra -Wunused -g -DVERSION=\"${VER}\" ${INCS}
     12 LDFLAGS += ${LIBS}
     13 
     14 $(BIN): ${OBJ}
     15 	${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJ}
     16 
     17 %.o: %.c
     18 	${CC} ${CFLAGS} -c -o $@ $<
     19 
     20 clean:
     21 	rm -rf ${BIN} ${OBJ} *.core
     22 
     23 all: nbeng