Makefile 1.5 KB
Newer Older
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82

IL2C=il2c/il2c

CFLAGS= -Wall -O3 -I../log/ -I..
BLOCKSRCS= \
	block_add.c \
	block_and2.c \
	block_bridge_pwm.c \
	block_counter.c \
	block_debug.c \
	block_decoder_uint32_bool.c \
	block_filter_iir.c \
	block_filter_lp.c \
	block_friction.c \
	block_gain.c \
	block_gain_var.c \
	block_joystick.c \
	block_limit.c \
	block_limit_dyn.c \
	block_limit_2nd.c \
	block_limit_var.c \
	block_matrix_2x2.c \
	block_multiplexer.c \
	block_not.c \
	block_or2.c \
	block_or3.c \
	block_or4.c \
	block_pid.c \
	block_pid_aw.c \
	block_quantize.c \
	block_random.c \
	block_register.c \
	block_setpoint_generator.c \
	block_setreset.c \
	block_servo_state.c \
	block_sine.c \
	block_subtract.c \
	block_switch.c \
	block_trajectplayer.c \
	block_trigger.c \
	block_value.c \
	block_value_bool.c \
	block_value_uint32.c

CONTROLLERSRCS= \
	controller_block.c \
	controller_setpoint_command.c \
	controller_trace.c \
	controller_sample.c \
	controller_dumpdot.c \
	controller_load.c \
	controller_load_parser.tab.c \
	controller_load_parser.yy.c


SRCS= $(CONTROLLERSRCS) $(BLOCKSRCS)

BLOCKS=$(BLOCKSRCS:.c=.o)

CONTROLLER= $(CONTROLLERSRCS:.c=.o)


all: il2cdir $(BLOCKS) $(CONTROLLER) controllerlib


controller_load_parser.tab.o: controller_load_parser.yy.c

controller_load.o: controller_load_parser.tab.h controller_load_parser.yy.h

il2cdir:
	@echo " SUBDIR: $@"
	@$(MAKE) -C il2c

.PHONY: il2cdir

controllerlib: controller.a($(BLOCKS) $(CONTROLLER))

clean:
	rm -rf *.o *.a *.yy.* *.tab.* *.d
	@$(MAKE) -C il2c clean

include ../build.mk