Commit e6200ab2 authored by Ondřej Surý's avatar Ondřej Surý

First try at autotools

parent 0aad5029
Ľuboš Slovák <lubos.slovak@nic.cz>
Marek Vavruša <marek.vavrusa@nic.cz>
Jan Kadlec <jan.kadlec@nic.cz>
Ondřej Surý <ondrej.sury@nic.cz>
This diff is collapsed.
// ADD PREDEFINED MACROS HERE!
Makefile
Doxy.page.h
CodingStyle
src/common.h
src/main.c
src/hash/cuckoo-hash-table.c
src/hash/cuckoo-hash-table.h
src/hash/hash-functions.c
src/hash/hash-functions.h
src/hash/universal-system.c
src/hash/universal-system.h
src/other/print.c
src/other/print.h
src/other/log.h
src/other/log.c
src/other/debug.h
src/server/socket.c
src/server/socket.h
src/server/name-server.c
src/server/name-server.h
src/server/server.c
src/server/server.h
src/server/udp-handler.h
src/server/tcp-handler.h
src/server/udp-handler.c
src/server/tcp-handler.c
src/server/dthreads.h
src/server/dthreads.c
src/stat/gatherer.h
src/stat/gatherer.c
src/stat/stat.h
src/stat/stat.c
src/lib/dynamic-array.h
src/lib/dynamic-array.c
src/lib/skip-list.h
src/lib/skip-list.c
src/lib/tree.h
src/lib/bitset.h
src/lib/bitset.c
src/dnslib/dname.h
src/dnslib/dname.c
src/dnslib/rrset.h
src/dnslib/rrset.c
src/dnslib/rdata.h
src/dnslib/rdata.c
src/dnslib/node.h
src/dnslib/node.c
src/dnslib/consts.h
src/dnslib/descriptor.h
src/dnslib/descriptor.c
src/dnslib/zone.h
src/dnslib/zone.c
src/dnslib/rrsig.h
src/dnslib/rrsig.c
src/dnslib/response.h
src/dnslib/packet.h
src/dnslib/response.c
src/dnslib/edns.h
src/dnslib/utils.h
src/dnslib/utils.c
src/dnslib/zonedb.h
src/dnslib/zonedb.c
src/dnslib/debug.h
src/dnslib/debug.c
src/dnslib/dnslib.h
src/dnslib/tolower.h
src/dnslib/zone-dump.c
src/dnslib/zone-dump.h
src/dnslib/zone-load.c
src/dnslib/zone-load.h
src/zoneparser/main.c
src/zoneparser/parser-descriptor.h
src/zoneparser/parser-descriptor.c
src/zoneparser/parser-util.h
src/zoneparser/parser-util.c
src/zoneparser/zlexer.lex
src/zoneparser/zoneparser.c
src/zoneparser/zoneparser.h
src/zoneparser/zparser.y
src/alloc/malloc.h
src/alloc/malloc.c
src/alloc/slab.h
src/alloc/slab.c
src/tests/libtap/tap.c
src/tests/libtap/tap.h
src/tests/main.c
src/tests/server_tests.c
src/tests/skiplist_tests.c
src/tests/slab_tests.c
src/tests/da_tests.c
src/tests/tap_unit.h
src/tests/zonedb_tests.c
src/tests/dnslib_tests.c
src/tests/cuckoo_tests.c
src/tests/template_tests.c
src/tests/dthreads_tests.c
src/tests/dnslib/dnslib_dname_tests.c
src/tests/dnslib/dnslib_rdata_tests.c
src/tests/dnslib/dnslib_rrset_tests.c
src/tests/dnslib/dnslib_node_tests.c
src/tests/dnslib/dnslib_response_tests.c
src/tests/dnslib/dnslib_zone_tests.c
src/ctl/main.c
src/ctl/process.c
src/ctl/process.h
tests/querytcp.c
This diff is collapsed.
### Colours ###
COL_BLACK = \033[01;30m
COL_GREEN = \033[01;32m
COL_BLUE = \033[01;34m
COL_RED = \033[01;31m
COL_YELLOW = \033[01;33m
COL_VIOLET = \033[01;35m
COL_CYAN = \033[01;36m
COL_WHITE = \033[01;37m
COL_END = \033[0m
INC_DIRS = obj/ src/ src/hash/ src/dns/ src/other/ src/server/ src/zoneparser/ src/tests src/tests/libtap src/dnslib/ src/stat src/alloc/ src/ctl/ src/lib/
SRC_DIRS = src/
TESTS_DIR = src/tests/
ZONEC_DIR = src/zoneparser/
CTL_DIR = src/ctl
OBJ_DIR = obj/
BIN_DIR = bin/
YACC = yacc
LEX = flex
VPATH += ${SRC_DIRS} ${INC_DIRS} ${OBJ_DIR}
PARSER_OBJ = $(OBJ_DIR)zparser
LEXER_OBJ = $(OBJ_DIR)zlexer
PARSER_FILES = $(PARSER_OBJ).c $(LEXER_OBJ).c
TESTS_FILES = $(TESTS_DIR)/main.c $(TESTS_DIR)/libtap/tap.c
ZONEC_FILES = $(ZONEC_DIR)/main.c
CTL_FILES = $(CTL_DIR)/main.c
CTL_OBJ = $(OBJ_DIR)log.o $(OBJ_DIR)process.o
SRC_FILES = $(shell find $(SRC_DIRS) ! -path "*/tests/*" -name "*.c" ! -name "main.c")
OBJS = $(PARSER_OBJ).c $(LEXER_OBJ).o $(addprefix $(OBJ_DIR), $(addsuffix .o, $(basename $(notdir $(SRC_FILES)))))
CC = gcc
CFLAGS_DEBUG = -g -O0
CFLAGS_OPTIMAL = -O2 -funroll-loops -fomit-frame-pointer
CFLAGS += -Wall -std=gnu99 -D _XOPEN_SOURCE=600 -D_GNU_SOURCE
LDFLAGS += -lpthread -lurcu -lrt -lm
all: cutedns unittests zoneparser cutectl
ifeq ($(DEBUG),1)
CFLAGS += $(CFLAGS_DEBUG)
else
CFLAGS += $(CFLAGS_OPTIMAL)
endif
### Resources ###
RC_DIR = src/tests/files
RC_FILES = $(RC_DIR)/parsed_data $(RC_DIR)/parsed_data_queries $(RC_DIR)/raw_data $(RC_DIR)/raw_data_queries
RC_OBJS = $(addprefix $(OBJ_DIR), $(addsuffix .rc, $(basename $(notdir $(RC_FILES)))))
$(OBJ_DIR)%.rc: $(RC_DIR)/%
@echo "$(COL_WHITE)Resource $(COL_CYAN)$@: $(COL_BLUE)$< $(COL_END)"
@./resource.sh $< > $@
### Dependencies ###
DEPEND = $(CC) $(addprefix -I ,$(INC_DIRS)) -MM $(SRC_FILES) 2>/dev/null | sed "s%^\([^\ \t\n]*\.o\)%$(OBJ_DIR)/\1%"
Makefile.depend: $(RC_OBJS)
@$(DEPEND) > Makefile.depend
$(LEXER_OBJ).c: $(ZONEC_DIR)/zlexer.lex
$(LEX) -i -t $< >> $@
$(PARSER_OBJ).c $(PARSER_OBJ).h: $(ZONEC_DIR)/zparser.y
$(YACC) -d -o $(PARSER_OBJ).c $(ZONEC_DIR)/zparser.y
# cutedns
cutedns: Makefile.depend $(PARSER_FILES) $(OBJS) $(SRC_DIRS)main.c
@echo "$(COL_WHITE)Linking... $(COL_YELLOW)${BIN_DIR}$@$(COL_END) <-- $(COL_CYAN)$(OBJS) $(SRC_DIRS)main.c$(COL_END)"
@$(CC) $(CFLAGS) $(addprefix -I ,$(INC_DIRS)) $(LDFLAGS) $(OBJS) $(SRC_DIRS)main.c -o ${BIN_DIR}$@
zoneparser: Makefile.depend cutedns $(OBJS) $(PARSER_FILES) $(ZPARSER_FILES)
@echo "$(COL_WHITE)Linking... $(COL_YELLOW)${BIN_DIR}$@$(COL_END) <-- $(COL_CYAN)$(PARSER_FILES) $(OBJS) $(ZONEC_FILES)$(COL_END)"
@$(CC) $(CFLAGS) $(addprefix -I ,$(INC_DIRS)) $(LDFLAGS) $(OBJS) $(ZONEC_FILES) -o ${BIN_DIR}$@
cutectl: cutedns $(CTL_FILES) $(CTL_OBJ)
@echo "$(COL_WHITE)Linking... $(COL_YELLOW)${BIN_DIR}$@$(COL_END) <-- $(COL_CYAN)$(CTL_FILES) $(CTL_OBJ)$(COL_END)"
@$(CC) $(CFLAGS) $(addprefix -I ,$(INC_DIRS)) $(LDFLAGS) $(CTL_FILES) $(CTL_OBJ) -o ${BIN_DIR}$@
unittests: Makefile.depend cutedns $(OBJS) $(TESTS_FILES)
@echo "$(COL_WHITE)Linking... $(COL_YELLOW)${BIN_DIR}$@$(COL_END) <-- $(COL_CYAN)$(OBJS) $(TESTS_FILES)$(COL_END)"
@$(CC) $(CFLAGS) $(addprefix -I ,$(INC_DIRS)) $(LDFLAGS) $(OBJS) $(TESTS_FILES) -o ${BIN_DIR}$@
test: unittests
@bin/unittests samples/example.com.zone
.PHONY: Makefile.depend
.INTERMEDIATE: Makefile.depend
-include Makefile.depend
.SUFFIXES:
### Generic Rules ###
$(OBJ_DIR)%.o: %.c
@echo "$(COL_WHITE)Compiling $(COL_CYAN)$@: $(COL_BLUE)$< $(COL_END)"
@$(CC) $(CFLAGS) $(addprefix -I ,$(INC_DIRS)) -c -o $@ $<
### Cleaning and documentation ###
.PHONY: clean doc
clean:
@echo "$(COL_WHITE)Cleaning resource files ...$(COL_RED)"
@rm -vf $(OBJ_DIR)/*.rc
@echo "$(COL_WHITE)Cleaning flex & bison files ...$(COL_RED)"
@rm -vf $(OBJ_DIR)/*.h $(OBJ_DIR)/*.c
@echo "$(COL_WHITE)Cleaning object files...$(COL_RED)"
@rm -vf ${OBJ_DIR}/*.o
@echo "$(COL_WHITE)done$(COL_END)"
doc:
@doxygen "Doxyfile"
ACLOCAL_AMFLAGS = -Im4
SUBDIRS = src
# -*- Autoconf -*-
AC_PREREQ([2.67])
AC_INIT([knot], [0.2], [bug-me-knot@nic.cz])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_MACRO_DIR([m4])
# Set compiler compatibility flags
AC_PROG_CPP_WERROR
AC_PROG_CC_STDC
AC_PROG_CC_C99
# Initialize libtool
LT_INIT
# Checks for programs.
AC_PROG_CC
AC_PROG_LEX
AC_PROG_YACC
AC_PROG_INSTALL
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lm':
AC_CHECK_LIB([m], [pow])
AC_CHECK_LIB([pthread], [pthread_create])
AC_CHECK_LIB([urcu], [rcu_read_lock])
AC_CHECK_LIB([rt], [clock_gettime])
# Checks for header files.
AC_HEADER_RESOLV
AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h malloc.h netdb.h netinet/in.h stdint.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT64_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MMAP
AC_CHECK_FUNCS([gethostbyname gettimeofday memmove memset munmap regcomp select socket sqrt strcasecmp strchr strdup strerror strncasecmp strtol strtoul])
AC_CONFIG_FILES([Makefile
src/Makefile])
AC_OUTPUT
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
#
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
# Written by Gary V. Vaughan, 2004
#
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
# serial 6 ltsugar.m4
# This is to help aclocal find these macros, as it can't see m4_define.
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
# lt_join(SEP, ARG1, [ARG2...])
# -----------------------------
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
# associated separator.
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
# versions in m4sugar had bugs.
m4_define([lt_join],
[m4_if([$#], [1], [],
[$#], [2], [[$2]],
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
m4_define([_lt_join],
[m4_if([$#$2], [2], [],
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
# lt_car(LIST)
# lt_cdr(LIST)
# ------------
# Manipulate m4 lists.
# These macros are necessary as long as will still need to support
# Autoconf-2.59 which quotes differently.
m4_define([lt_car], [[$1]])
m4_define([lt_cdr],
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
[$#], 1, [],
[m4_dquote(m4_shift($@))])])
m4_define([lt_unquote], $1)
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
# ------------------------------------------
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
# Note that neither SEPARATOR nor STRING are expanded; they are appended
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
# than defined and empty).
#
# This macro is needed until we can rely on Autoconf 2.62, since earlier
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
m4_define([lt_append],
[m4_define([$1],
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
# ----------------------------------------------------------
# Produce a SEP delimited list of all paired combinations of elements of
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
# has the form PREFIXmINFIXSUFFIXn.
# Needed until we can rely on m4_combine added in Autoconf 2.62.
m4_define([lt_combine],
[m4_if(m4_eval([$# > 3]), [1],
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
[[m4_foreach([_Lt_prefix], [$2],
[m4_foreach([_Lt_suffix],
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
# -----------------------------------------------------------------------
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
m4_define([lt_if_append_uniq],
[m4_ifdef([$1],
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
[lt_append([$1], [$2], [$3])$4],
[$5])],
[lt_append([$1], [$2], [$3])$4])])
# lt_dict_add(DICT, KEY, VALUE)
# -----------------------------
m4_define([lt_dict_add],
[m4_define([$1($2)], [$3])])
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
# --------------------------------------------
m4_define([lt_dict_add_subkey],
[m4_define([$1($2:$3)], [$4])])
# lt_dict_fetch(DICT, KEY, [SUBKEY])
# ----------------------------------
m4_define([lt_dict_fetch],
[m4_ifval([$3],
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
# -----------------------------------------------------------------
m4_define([lt_if_dict_fetch],
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
[$5],
[$6])])
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
# --------------------------------------------------------------
m4_define([lt_dict_filter],
[m4_if([$5], [], [],
[lt_join(m4_quote(m4_default([$4], [[, ]])),
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
])
# ltversion.m4 -- version numbers -*- Autoconf -*-
#
# Copyright (C) 2004 Free Software Foundation, Inc.
# Written by Scott James Remnant, 2004
#
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
# Generated from ltversion.in.
# serial 3017 ltversion.m4
# This file is part of GNU Libtool
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
m4_define([LT_PACKAGE_REVISION], [1.3017])
AC_DEFUN([LTVERSION_VERSION],
[macro_version='2.2.6b'
macro_revision='1.3017'
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
_LT_DECL(, macro_revision, 0)
])
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
#
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
# Written by Scott James Remnant, 2004.
#
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
# serial 4 lt~obsolete.m4
# These exist entirely to fool aclocal when bootstrapping libtool.
#
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
# which have later been changed to m4_define as they aren't part of the
# exported API, or moved to Autoconf or Automake where they belong.
#
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
# using a macro with the same name in our local m4/libtool.m4 it'll
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
# and doesn't know about Autoconf macros at all.)
#
# So we provide this file, which has a silly filename so it's always
# included after everything else. This provides aclocal with the
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
# because those macros already exist, or will be overwritten later.
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
#
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
# Yes, that means every name once taken will need to remain here until
# we give up compatibility with versions before 1.7, at which point
# we need to keep only those names which we still refer to.
# This is to help aclocal find these macros, as it can't see m4_define.
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
ACLOCAL_AMFLAGS = -I../m4
bin_PROGRAMS = knotc
libexec_PROGRAMS = knot-zoneparser
sbin_PROGRAMS = knot
# FIXME: Move header files to $(topdir)/include
AM_CFLAGS = \
-I. \
-std=gnu99 \
-D_XOPEN_SOURCE=600 \
-D_GNU_SOURCE
# $(YACC) will generate header file
AM_YFLAGS = -d
LDADD = libknot.a @LIBOBJS@
TESTS = unittest
knotc_SOURCES = \
ctl/knotc_main.c
knot_zoneparser_SOURCES = \
zoneparser/zoneparser_main.c
#unittests_SOURCES = \
# tests/zonedb_tests.c \
# tests/dnslib_tests.c \
# tests/dthreads_tests.c \
# tests/libtap/tap.c \
# tests/da_tests.c \
# tests/server_tests.c \
# tests/slab_tests.c \
# tests/template_tests.c \
# tests/dnslib/dnslib_response_tests.c \
# tests/dnslib/dnslib_zone_tests.c \
# tests/dnslib/dnslib_rrsig_set_tests.c \
# tests/dnslib/dnslib_rrset_tests.c \
# tests/dnslib/dnslib_edns_tests.c \
# tests/dnslib/dnslib_rdata_tests.c \
# tests/dnslib/dnslib_node_tests.c \
# tests/dnslib/dnslib_dname_tests.c \
# tests/skiplist_tests.c \
# tests/cuckoo_tests.c \
# tests/unittests_main.c
knot_SOURCES = \
main.c
noinst_LIBRARIES = libknot.a
libknot_a_SOURCES = \
ctl/process.c \
zoneparser/zparser.y \
zoneparser/zlexer.l \
zoneparser/zoneparser.c \
zoneparser/parser-util.c \
zoneparser/parser-descriptor.c \
alloc/slab.c \
alloc/malloc.c \
lib/dynamic-array.c \
lib/bitset.c \
lib/skip-list.c \
stat/gatherer.c \
stat/stat.c \
dnslib/utils.c \
dnslib/rrset.c \
dnslib/dname.c \
dnslib/node.c \
dnslib/response.c \
dnslib/rrsig.c \
dnslib/zone.c \
dnslib/zonedb.c \
dnslib/zone-load.c \
dnslib/debug.c \
dnslib/zone-dump.c \
dnslib/rdata.c \
dnslib/descriptor.c \
server/dthreads.c \
server/socket.c \
server/name-server.c \
server/server.c \
server/udp-handler.c \
server/tcp-handler.c \
hash/hash-functions.c \
hash/cuckoo-hash-table.c \
hash/universal-system.c \
other/log.c \
other/print.c \
src/alloc/slab.h \
alloc/malloc.h \
lib/skip-list.h \
lib/dynamic-array.h \
lib/tree.h \
lib/bitset.h \
common.h \
tests/libtap/tap.h \
tests/tap_unit.h \
zoneparser/parser-util.h \
zoneparser/parser-descriptor.h \
stat/gatherer.h \
stat/stat.h \
ctl/process.h \
dnslib/zonedb.h \
dnslib/consts.h \
dnslib/node.h \
dnslib/edns.h \
dnslib/zone.h \
dnslib/rdata.h \
dnslib/descriptor.h \
dnslib/dnslib.h \
dnslib/tolower.h \
dnslib/zone-dump.h \
dnslib/dname.h \
dnslib/rrsig.h \
dnslib/response.h \
dnslib/rrset.h \
dnslib/zone-load.h \
dnslib/utils.h \
dnslib/packet.h \
dnslib/debug.h \
server/socket.h \
server/name-server.h \
server/udp-handler.h \
server/tcp-handler.h \
server/dthreads.h \
server/server.h \
hash/universal-system.h \
hash/cuckoo-hash-table.h \
hash/hash-functions.h \
config.h \
other/print.h \
other/log.h \
other/debug.h
libknot_a_LIBADD = @LIBOBJS@
%{
/*!
* \file zlexer.lex
* \file zlexer.l
*
* \author minor modifications by Jan Kadlec <jan.kadlec@nic.cz>,
* most of the code by NLnet Labs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment