瀏覽代碼

Added a template

master
Eudald Gubert i Roldan Raspbeguy 4 年之前
父節點
當前提交
8e642f443f
共有 2 個文件被更改,包括 28 次插入2 次删除
  1. +2
    -2
      config.mk
  2. +26
    -0
      config.mk.def

+ 2
- 2
config.mk 查看文件

@@ -14,7 +14,7 @@ INCS = -I${MISC} -I${EVLOOP}
LIBS = -lcrypto -lm -lpthread

# flags
CPPFLAGS = ${INCS} -DHAVE_CLOCK_MONOTONIC=1 -DEVLOOP_NONE
CPPFLAGS = ${INCS} -DHAVE_CLOCK_MONOTONIC=1 -DEVLOOP_POLL
CFLAGS = -march=native -pipe -O3 -fno-math-errno
LDFLAGS = ${LIBS}
DEFS = -DPACKAGE_NAME=\"${NAME}\" -DPACKAGE_VERSION=\"${VERSION}\"
@@ -23,4 +23,4 @@ DEFS = -DPACKAGE_NAME=\"${NAME}\" -DPACKAGE_VERSION=\"${VERSION}\"
CC = gcc

# excluded
EVLOOP_SRC := ${filter-out evloop/poll.c evloop/epoll.c evloop/kqueue.c, ${EVLOOP_SRC}}
EVLOOP_SRC := ${filter-out evloop/epoll.c evloop/kqueue.c, ${EVLOOP_SRC}}

+ 26
- 0
config.mk.def 查看文件

@@ -0,0 +1,26 @@
# btpd version
NAME = btpd
VERSION = 0.16

# paths
PREFIX = /usr
MANPREFIX = ${PREFIX}/share/man

MISC = ./misc
EVLOOP = ./evloop

# includes and libs
INCS = -I${MISC} -I${EVLOOP}
LIBS = -lcrypto -lm -lpthread

# flags
CPPFLAGS = ${INCS} -DHAVE_CLOCK_MONOTONIC=1 -DEVLOOP_NONE
CFLAGS = -march=native -pipe -O3 -fno-math-errno
LDFLAGS = ${LIBS}
DEFS = -DPACKAGE_NAME=\"${NAME}\" -DPACKAGE_VERSION=\"${VERSION}\"

# compiler
CC = gcc

# excluded
EVLOOP_SRC := ${filter-out evloop/poll.c evloop/epoll.c evloop/kqueue.c, ${EVLOOP_SRC}}

Loading…
取消
儲存