objdictgen/examples/example_objdict.h
author gabriele at naustech dot com
Thu, 12 Jun 2014 14:07:16 +0200
changeset 791 7740ac6fdedc
parent 623 36b62c854ee2
permissions -rw-r--r--
Fix : libcanfestival_unix.a not built if examples are not compiled

Problem: when building Canfestival with unix timers 'libcanfestiva_unix.a'
is built only if you build examples too.

Test case:

$ ./configure --timers=unix --can=socket --target=unix
$ make canfestival

...

no errors but 'libcanfestival_unix.a' is not built:
$ find . -name "*.a"
./src/libcanfestival.a

Changing line 90 of 'drivers/unix/Makefile.in' to:
#driver: $(OBJS)
driver: libcanfestival_$(TARGET).a

solves the problem:

$ ./configure --timers=unix --can=socket --target=unix
$ make canfestival

...

$ find . -name "*.a"
./drivers/unix/libcanfestival_unix.a
./src/libcanfestival.a
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     1
281
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
     2
/* File generated by gen_cfile.py. Should not be modified. */
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     3
281
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
     4
#ifndef EXAMPLE_OBJDICT_H
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
     5
#define EXAMPLE_OBJDICT_H
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     6
281
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
     7
#include "data.h"
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     8
281
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
     9
/* Prototypes of function provided by object dictionnary */
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
    10
UNS32 Linux_slave_valueRangeTest (UNS8 typeValue, void * value);
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
    11
const indextable * Linux_slave_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks);
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    12
281
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
    13
/* Master node data struct */
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
    14
extern CO_Data Linux_slave_Data;
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
    15
extern UNS8 Time_seconds;		/* Mapped at index 0x2000, subindex 0x01 */
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
    16
extern UNS8 Time_minutes;		/* Mapped at index 0x2000, subindex 0x02 */
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
    17
extern UNS8 Time_hours;		/* Mapped at index 0x2000, subindex 0x03 */
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
    18
extern UNS8 Time_days;		/* Mapped at index 0x2000, subindex 0x04 */
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
    19
extern UNS32 canopenErrNB;		/* Mapped at index 0x2001, subindex 0x00*/
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
    20
extern UNS32 canopenErrVal;		/* Mapped at index 0x2002, subindex 0x00*/
623
36b62c854ee2 Obsolete example fixed
laurent
parents: 281
diff changeset
    21
extern INTEGER8 strTest[10];		/* Mapped at index 0x2003, subindex 0x00*/
281
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
    22
685d9a26e4f9 Obsolete example files in objdictgen/examples replaced by some new equivalents
lbessard
parents: 0
diff changeset
    23
#endif // EXAMPLE_OBJDICT_H