build.mk 416 Bytes
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
TEST_TARGETS := $(DIR)/iir_test

TEST_SRCS := $(DIR)/iir_test.c
TEST_OBJS := $(TEST_SRCS:.c=.o)

$(DIR)/iir_test: \
	libcontroller.la \
	libblock.la \
	libethercat.la \
	liblog.la
$(DIR)/iir_test: CFLAGS += -Wall -g -O0
$(DIR)/iir_test: LDFLAGS += \
	-lcontroller \
	-lblock \
	-lethercat \
	-llog
$(DIR)/iir_test: $(TEST_OBJS)


SRCS += $(TEST_SRCS)
TARGETS += $(TEST_TARGETS)
CLEAN += $(TEST_TARGETS) $(TEST_OBJS)