diff options
| author | Eudald Gubert i Roldan <hola@eudald.gr> | 2020-04-06 13:40:14 +0200 |
|---|---|---|
| committer | Raspbeguy <raspbeguy@users.noreply.github.com> | 2020-04-06 13:58:06 +0200 |
| commit | 8e642f443f7f31d48cd796e0032e0b6b52804b01 (patch) | |
| tree | ad6de3252aa939cd2000a662a2ad7cbb20306ff8 | |
| parent | e88bebf12bce715e32dd8c8e8c5c91807e4cfcb6 (diff) | |
| download | btpd-8e642f443f7f31d48cd796e0032e0b6b52804b01.tar.gz btpd-8e642f443f7f31d48cd796e0032e0b6b52804b01.zip | |
Added a template
| -rw-r--r-- | config.mk | 4 | ||||
| -rw-r--r-- | config.mk.def | 26 |
2 files changed, 28 insertions, 2 deletions
diff --git a/config.mk b/config.mk index 2f92336..e5c9699 100644 --- a/config.mk +++ b/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}} diff --git a/config.mk.def b/config.mk.def new file mode 100644 index 0000000..2f92336 --- /dev/null +++ b/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}} |