Created
March 14, 2016 19:01
-
-
Save johnkeates/36c48d9986111670d9e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PACKAGE=statsite | |
VERSION=0.0.1 | |
AC_INIT([statsite], [0.0.1]) | |
AC_CONFIG_SRCDIR([src/statsite.c]) | |
AC_CONFIG_AUX_DIR([ac_config]) | |
AM_INIT_AUTOMAKE(foreign subdir-objects) | |
AC_PROG_CC | |
LT_INIT | |
AC_CONFIG_MACRO_DIR([m4]) | |
AC_OUTPUT(Makefile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUTOMAKE_OPTIONS := subdir-objects | |
ACLOCAL_AMFLAGS := -I m4 | |
bin_PROGRAMS = src/statsite | |
noinst_LTLIBRARIES = deps/ae/ae.a deps/inih/ini.a deps/murmurhash/MurmurHash3.a | |
noinst_HEADER = $(lib_ae_includes) $(lib_inih_includes) $(lib_murur_includes) | |
#========================================================= | |
# ae | |
lib_ae_includes = \ | |
deps/ae/ae.h deps/ae/config.h deps/ae/zmalloc.h | |
lib_ae_a_SOURCES = $(lib_ae_includes) \ | |
deps/ae/ae_epoll.c deps/ae/ae_eveport.c deps/ae/ae_kqueue.c deps/ae/ae_select.c deps/ae/ae.c | |
#========================================================= | |
# inih | |
lib_inih_includes = \ | |
deps/inih/ini.h | |
lib_inih_a_SOURCES = $(lib_inih_includes) \ | |
deps/inih/ini.c | |
#========================================================= | |
# murmurhash | |
lib_murur_includes = \ | |
deps/murmurhash/MurmurHash3.h | |
lib_murur_a_SOURCES = $(lib_murur_includes) \ | |
deps/murmurhash/MurmurHash3.c | |
#========================================================= | |
# statsite, the binary itself | |
src_statsite_SOURCES = \ | |
src/cm_quantile.c \ | |
src/cm_quantile.h \ | |
src/config.c \ | |
src/config.h \ | |
src/conn_handler.c \ | |
src/conn_handler.h \ | |
src/counter.c \ | |
src/counter.h \ | |
src/hashmap.c \ | |
src/hashmap.h \ | |
src/heap.c \ | |
src/heap.h \ | |
src/hll.c \ | |
src/hll_constants.c \ | |
src/hll_constants.h \ | |
src/hll.h \ | |
src/metrics.c \ | |
src/metrics.h \ | |
src/networking.c \ | |
src/networking.h \ | |
src/radix.c \ | |
src/radix.h \ | |
src/set.c \ | |
src/set.h \ | |
src/statsite.c \ | |
src/streaming.c \ | |
src/streaming.h \ | |
src/timer.c \ | |
src/timer.h | |
src_statsite_LDADD = deps/inih/inih.a deps/ae/ae.a deps/murmurhash/murmur.a | |
# examples seem to add $(EXT_A_LIBS) $(EXT_B_LIBS) as well | |
# Compiler options from the scons file, not using them right now | |
#CFLAGS = '-g -std=c99 -D_GNU_SOURCE -Wall -Werror -Wstrict-aliasing=0 -O3 -pthread -Ideps/inih/ -Ideps/ae/ -Isrc/' | |
#CFLAGS_WITHOUT_ERR = '-g -std=c99 -D_GNU_SOURCE -O3 -pthread -Ideps/inih/ -Ideps/ae/ -Isrc/' | |
# Compiler options for SunOS from the scons file | |
## statsite_with_err_cc_flags = '-g -std=gnu99 -D_GNU_SOURCE -DLOG_PERROR=0 -Wall -Wstrict-aliasing=0 -Wformat=0 -O3 -pthread -Ideps/inih/ -Ideps/ae/ -Isrc/' | |
## statsite_without_err_cc_flags = '-g -std=gnu99 -D_GNU_SOURCE -DLOG_PERROR=0 -O3 -pthread -Ideps/inih/ -Ideps/ae/ -Isrc/' | |
.PHONY: all test clean sdist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment