1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES:= \
5	dexec.c \
6	dfork.c \
7	dlog.c \
8	dnonblock.c \
9	dpid.c \
10	dsignal.c
11
12LOCAL_C_INCLUDES+= $(LOCAL_PATH)/..
13
14LOCAL_MODULE:=libdaemon
15
16LOCAL_EXPORT_C_INCLUDE_DIRS:= $(LOCAL_PATH)/..
17
18# -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I..   -g -O2 -pipe
19# -Wall -W -Wextra -pedantic -Wformat -Wold-style-definition
20# -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations
21# -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls
22# -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith
23# -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline
24#  -Wstrict-aliasing
25# -MT testd.o -MD -MP -MF .deps/testd.Tpo -c -o testd.o testd.c
26
27LOCAL_CFLAGS+= \
28	-Wall -Werror \
29	-Wno-error=user-defined-warnings \
30	-Wno-unused-parameter \
31	-DHAVE_CONFIG_H \
32	-DLOCALSTATEDIR=\"/var\"
33
34include $(BUILD_SHARED_LIBRARY)
35