2009-05-02 22:35:02 +00:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-I$(top_srcdir)/src/server \
|
|
|
|
-I$(top_srcdir)/src/target \
|
|
|
|
-DPKGDATADIR=\"$(pkgdatadir)\" \
|
|
|
|
-DPKGLIBDIR=\"$(pkglibdir)\"
|
|
|
|
|
2008-02-28 10:07:54 +00:00
|
|
|
METASOURCES = AUTO
|
|
|
|
noinst_LIBRARIES = libhelper.a
|
2008-03-11 21:32:03 +00:00
|
|
|
|
|
|
|
if ECOSBOARD
|
|
|
|
CONFIGFILES =
|
|
|
|
else
|
2008-08-11 08:27:04 +00:00
|
|
|
CONFIGFILES = options.c jim.c jim-eventloop.c
|
2008-03-11 21:32:03 +00:00
|
|
|
endif
|
|
|
|
|
2008-12-15 11:32:22 +00:00
|
|
|
|
|
|
|
|
2009-05-10 19:44:38 +00:00
|
|
|
libhelper_a_SOURCES = \
|
|
|
|
binarybuffer.c $(CONFIGFILES) configuration.c \
|
2009-05-10 21:33:53 +00:00
|
|
|
log.c command.c time_support.c \
|
2008-08-11 08:27:04 +00:00
|
|
|
replacements.c fileio.c startup_tcl.c
|
2008-07-17 17:34:53 +00:00
|
|
|
|
2008-12-15 11:32:22 +00:00
|
|
|
if IOUTIL
|
|
|
|
libhelper_a_SOURCES += ioutil.c
|
|
|
|
endif
|
|
|
|
|
2009-04-21 09:02:42 +00:00
|
|
|
libhelper_a_CFLAGS =
|
|
|
|
if IS_MINGW
|
|
|
|
# FD_* macros are sloppy with their signs on MinGW32 platform
|
|
|
|
libhelper_a_CFLAGS += -Wno-sign-compare
|
|
|
|
endif
|
2008-12-15 11:32:22 +00:00
|
|
|
|
2008-07-18 11:38:23 +00:00
|
|
|
noinst_HEADERS = binarybuffer.h configuration.h types.h log.h command.h \
|
2008-12-01 19:55:55 +00:00
|
|
|
time_support.h replacements.h fileio.h jim.h jim-eventloop.h \
|
|
|
|
startup.tcl bin2char.c
|
2008-07-17 17:34:53 +00:00
|
|
|
|
2008-07-22 11:06:09 +00:00
|
|
|
bin2char$(EXEEXT_FOR_BUILD): bin2char.c
|
|
|
|
${CC_FOR_BUILD} ${CFLAGS_FOR_BUILD} $(srcdir)/bin2char.c -o $@
|
2008-07-17 17:34:53 +00:00
|
|
|
|
|
|
|
# Convert .tcl to cfile
|
2008-07-22 11:06:09 +00:00
|
|
|
startup_tcl.c: startup.tcl bin2char$(EXEEXT_FOR_BUILD)
|
|
|
|
./bin2char$(EXEEXT_FOR_BUILD) startup_tcl < $(srcdir)/startup.tcl > $@
|
2008-07-17 17:34:53 +00:00
|
|
|
|
|
|
|
# add startup_tcl.c to make clean list
|
2008-07-22 11:06:09 +00:00
|
|
|
CLEANFILES = startup_tcl.c bin2char$(EXEEXT_FOR_BUILD)
|
2009-01-20 03:55:38 +00:00
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = Makefile.in
|