summaryrefslogtreecommitdiff
path: root/src/hal/classicladder/Submakefile
blob: b9155dd29421b414d72986c8b48bb6c402715777 (plain)
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
ifneq ($(GTK_VERSION),)
CLASSICLADDERSRCS := $(addprefix hal/classicladder/, \
	arithm_eval.c \
	arrays.c \
	calc.c \
	calc_sequential.c \
	classicladder.c \
	classicladder_gtk.c \
	config.c \
	config_gtk.c \
	drawing.c \
	drawing_sequential.c \
	edit.c \
	edit_gtk.c \
	edit_sequential.c \
	editproperties_gtk.c \
	emc_mods.c \
	files.c \
	files_project.c \
	files_sequential.c \
	manager.c \
	manager_gtk.c \
	protocol_modbus_master.c \
	protocol_modbus_slave.c \
	serial_linux.c \
	socket_modbus_master.c \
	socket_server.c \
	spy_vars_gtk.c \
	symbols.c \
	symbols_gtk.c \
	vars_names.c \
	vars_access.c \
        ) hal/utils/miscgtk.c
	
GTK_CFLAGS += -DGTK_INTERFACE -DGTK2
ifeq ($(HAVE_GNOMEPRINT),yes)
CLASSICLADDERSRCS += hal/classicladder/print_gnome.c
GTK_CFLAGS += -DGNOME_PRINT_USE
endif


$(call TOOBJSDEPS,$(CLASSICLADDERSRCS)) : EXTRAFLAGS = $(GTK_CFLAGS) -DSEQUENTIAL_SUPPORT -DHAL_SUPPORT -DDYNAMIC_PLCSIZE -DRT_SUPPORT -DOLD_TIMERS_MONOS_SUPPORT -DMODBUS_IO_MASTER
$(call TOOBJS, $(CLASSICLADDERSRCS)): Makefile.inc

USERSRCS += $(CLASSICLADDERSRCS)

../bin/classicladder: $(call TOOBJS, $(CLASSICLADDERSRCS)) ../lib/liblinuxcnchal.so.0
	$(ECHO) Linking $(notdir $@)
	@$(CC) $(LDFLAGS) $(CFLAGS) $(ULFLAGS) -o $@ $^ $(GTK_LIBS) -lpthread

TARGETS += ../bin/classicladder
endif