core-lightning/daemon/Makefile
Rusty Russell dd35260ce8 daemon: first code.
Logging code based heavily on pettycoin's.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-01-22 06:41:47 +10:30

25 lines
602 B
Makefile

#! /usr/bin/make
# Designed to be run one level up
daemon-wrongdir:
$(MAKE) -C .. daemon-all
daemon-all: daemon/lightningd
DAEMON_SRC := \
daemon/lightningd.c \
daemon/log.c \
daemon/pseudorand.c
DAEMON_OBJS := $(DAEMON_SRC:.c=.o)
DAEMON_HEADERS := \
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/%)
daemon/lightningd: $(DAEMON_OBJS) $(CCAN_OBJS)