build.mk 1.02 KB
Newer Older
Jeroen Vreeken's avatar
Jeroen Vreeken committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

CONTROLLER_TARGETS += $(LIBDIR)/libcontroller.la

CONTROLLER_SRCS= \
	$(DIR)/controller_block.c \
	$(DIR)/controller_block_param.c \
	$(DIR)/controller_block_trace.c \
	$(DIR)/controller_command.c \
	$(DIR)/controller_trace.c \
	$(DIR)/controller_sample.c \
	$(DIR)/controller_dumpdot.c \
	$(DIR)/controller_load.c \
	$(DIR)/controller_load_variable.c \
	$(DIR)/controller_load_parser.tab.c \
	$(DIR)/controller_load_parser.yy.c
CONTROLLER_OBJS := $(CONTROLLER_SRCS:.c=.lo)


$(LIBDIR)/libcontroller.la: libshell.la libcommand.la libtrace.la
$(LIBDIR)/libcontroller.la: LDFLAGS += -lshell -ldl -lpthread -lrt -lcommand -ltrace
$(LIBDIR)/libcontroller.la: CFLAGS += -O3 -Wall
$(LIBDIR)/libcontroller.la: $(CONTROLLER_OBJS)
	$(LIB_LINK)

$(DIR)/controller_load_parser.tab.lo: $(DIR)/controller_load_parser.yy.c
$(DIR)/controller_load.lo: $(DIR)/controller_load_parser.tab.h
$(DIR)/controller_load.lo: $(DIR)/controller_load_parser.yy.h


TARGETS += $(CONTROLLER_TARGETS)
CLEAN += $(CONTROLLER_TARGETS) $(CONTROLLER_OBJS)
SRCS += $(CONTROLLER_SRCS)