2 cboard_SOURCES = cboard.c message.c message.h misc.c engine.c \
3 engine.h input.c input.h rcfile.c rcfile.h colors.c \
4 colors.h window.h window.c conf.h misc.h common.h \
5 menu.c menu.h tags.c tags.h keys.h filebrowser.c filebrowser.h
6 cboard_LDFLAGS = @PANEL_LIB@ @MENU_LIB@ @FORM_LIB@ @CURSES_LIB@
7 cboard_LDADD = $(top_builddir)/libchess/libchess.a
8 cboard_CPPFLAGS = -DDATA_PATH=\"$(pkgdatadir)\" -I$(top_srcdir)/libchess \
9 -DLOCALE_DIR=\"$(prefix)/share/locale\"
12 cboard_SOURCES += perl.c perl.h
13 LIBPERL_CFLAGS += @LIBPERL_CFLAGS@
14 cboard_LDFLAGS += @LIBPERL_LDFLAGS@
16 # This is needed because LIBPERL_CFLAGS has form.h in the include path which
17 # conflicts with the curses form.h which is normally in a standard system
18 # include path that gcc -I ignores.
20 $(CC) $(CFLAGS) $(CPPFLAGS) $(LIBPERL_CFLAGS) -c $< -o $@
28 cboard_SOURCES += $(top_srcdir)/osdep/strsep.c
32 cboard_SOURCES += $(top_srcdir)/osdep/err.c
33 CPPFLAGS += -I$(top_srcdir)/osdep