2016-01-21 21:11:47 +01:00
|
|
|
#! /usr/bin/make
|
|
|
|
|
|
|
|
# Designed to be run one level up
|
|
|
|
daemon-wrongdir:
|
|
|
|
$(MAKE) -C .. daemon-all
|
|
|
|
|
|
|
|
daemon-all: daemon/lightningd
|
|
|
|
|
|
|
|
DAEMON_SRC := \
|
2016-01-21 21:11:48 +01:00
|
|
|
daemon/configdir.c \
|
2016-01-21 21:11:47 +01:00
|
|
|
daemon/lightningd.c \
|
|
|
|
daemon/log.c \
|
|
|
|
daemon/pseudorand.c
|
|
|
|
DAEMON_OBJS := $(DAEMON_SRC:.c=.o)
|
|
|
|
|
|
|
|
DAEMON_HEADERS := \
|
2016-01-21 21:11:48 +01:00
|
|
|
daemon/configdir.h \
|
2016-01-21 21:11:47 +01:00
|
|
|
daemon/lightningd.h \
|
|
|
|
daemon/log.h \
|
|
|
|
daemon/pseudorand.h
|
|
|
|
|
|
|
|
$(DAEMON_OBJS): $(DAEMON_HEADERS) $(BITCOIN_HEADERS) $(CORE_HEADERS) $(GEN_HEADERS) $(CCAN_HEADERS)
|
|
|
|
|
|
|
|
check-source: $(DAEMON_SRC:%=check-src-include-order/%)
|
|
|
|
check-source: $(DAEMON_HEADERS:%=check-hdr-include-order/%)
|
2016-01-21 21:11:47 +01:00
|
|
|
check-daemon-makefile:
|
|
|
|
@if [ "`echo daemon/*.h`" != "$(DAEMON_HEADERS)" ]; then echo DAEMON_HEADERS incorrect; exit 1; fi
|
2016-01-21 21:11:47 +01:00
|
|
|
|
2016-01-21 21:11:47 +01:00
|
|
|
daemon/lightningd: $(DAEMON_OBJS) $(CORE_OBJS) $(BITCOIN_OBJS) $(CCAN_OBJS) libsecp256k1.a
|