]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/types/Makefile.omk
Simplify the automatically generated ORTE library
[eurobot/public.git] / src / types / Makefile.omk
1 # ORTE IDL compilation of robot types
2
3 include_GEN_HEADERS += robottype.h
4 lib_LIBRARIES = robottype
5 robottype_GEN_SOURCES = robottype.c
6
7 include-pass_HOOKS += robottype.c
8
9 robottype.c robottype.h: $(SOURCES_DIR)/robottype.idl
10         @$(QUIET_CMD_ECHO) "  IDL     $@"
11         $(Q)$(idl_COMPILE) $<
12
13
14 #  Robot's ORTE library (automatically generated from robottype.ortegen)
15 include-pass_HOOKS += roboorte_robottype.c roboorte_robottype.h
16
17 roboorte_robottype.c roboorte_robottype.h: $(SOURCES_DIR)/robottype.ortegen $(SOURCES_DIR)/roboortegen.pl
18         @$(QUIET_CMD_ECHO) "  ROBOORTE $@"
19         $(Q)perl -Mlib=$(SOURCES_DIR) $(SOURCES_DIR)/roboortegen.pl $<
20
21 $(SOURCES_DIR)/roboortegen.pl: $(SOURCES_DIR)/config.pl
22
23 lib_LIBRARIES += roboorte
24 roboorte_GEN_SOURCES = roboorte_robottype.c
25 include_GEN_HEADERS += roboorte_robottype.h
26