Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
#
TARGETS += opc-server

LEDSCAPE_OBJS = ledscape.o pru.o util.o lib/cesanta/frozen.o lib/cesanta/mongoose.o
LEDSCAPE_OBJS = ledscape.o pru.o util.o\
opc/color.o opc/render-state.o opc/runtime-state.o\
opc/server-config.o opc/server-error.o opc/server-pru.o\
lib/cesanta/mongoose.o lib/cesanta/frozen.o
LEDSCAPE_LIB := libledscape.a

PRU_TEMPLATES := $(wildcard pru/templates/*.p)
Expand All @@ -26,11 +29,13 @@ else
export CROSS_COMPILE?=arm-linux-gnueabi-
endif

# TODO(gsasha): find out how to deal without -D_BSD_SOURCE
CFLAGS += \
-std=c99 \
-W \
-Wall \
-D_DEFAULT_SOURCE \
-D_BSD_SOURCE \
-Wp,-MMD,$(dir $@).$(notdir $@).d \
-Wp,-MT,$@ \
-I. \
Expand Down
Loading