-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
42 lines (30 loc) · 1.16 KB
/
Makefile
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
CC=gcc
CFLAGS := -Wall -w -g -D_GNU_SOURCE -D_REENTRANT
CFLAGS += -I/opt/etherlab/include
CFLAGS += -I/usr/xenomai/include
ECAT_LIBS += -L/opt/etherlab/lib -lethercat_rtdm
XENO_LIBS += -L/usr/xenomai/lib -lrtdm -lnative -lxenomai -lpthread -lrt
YASKAWA_FRAME = yaskawa
YASKAWA_DC = yaskawa_dc
HIGEN_DC = higen_dc_2
PANASONIC = panasonic
SANYO = sanyo
HYBRID = hybrid
3HYBRID = 3hybrid
all: $(YASKAWA_FRAME) $(YASKAWA_DC) $(HIGEN_DC) $(SANYO) $(PANASONIC) $(HYBRID) $(3HYBRID)
$(YASKAWA_FRAME): yaskawa.c
$(CC) $(CFLAGS) -static -o $@ $^ $(ECAT_LIBS) $(XENO_LIBS)
$(YASKAWA_DC): yaskawa_dc.c
$(CC) $(CFLAGS) -static -o $@ $^ $(ECAT_LIBS) $(XENO_LIBS)
$(HIGEN_DC): higen_dc_2.c
$(CC) $(CFLAGS) -static -o $@ $^ $(ECAT_LIBS) $(XENO_LIBS)
$(PANASONIC): panasonic.c
$(CC) $(CFLAGS) -static -o $@ $^ $(ECAT_LIBS) $(XENO_LIBS)
$(SANYO): sanyo.c
$(CC) $(CFLAGS) -static -o $@ $^ $(ECAT_LIBS) $(XENO_LIBS)
$(HYBRID): yas_pana_2.c
$(CC) $(CFLAGS) -static -o $@ $^ $(ECAT_LIBS) $(XENO_LIBS)
$(3HYBRID): yas_pana_san_3.c
$(CC) $(CFLAGS) -static -o $@ $^ $(ECAT_LIBS) $(XENO_LIBS)
clean:
rm $(YASKAWA_FRAME) $(YASKAWA_DC) $(HIGEN_DC) $(SANYO) $(PANASONIC) $(HYBRID) $(3HYBRID)