Flatten directory structure (this is a DC-API example, not an autotools example)

git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@694 a7169a2c-3604-0410-bc95-c702d8d87f7a
This commit is contained in:
gombasg 2006-06-13 15:37:46 +00:00 committed by Adam Visegradi
parent b92ee9ef1b
commit 63e8390611
9 changed files with 36 additions and 37 deletions

View File

@ -2,4 +2,38 @@ ACLOCAL_AMFLAGS = -I .
AUTOMAKE_OPTIONS = 1.7
SUBDIRS = src
appdir = ${libdir}/boinc/apps/uppercase-example
app_PROGRAMS =
app_DATA =
if BUILD_CLIENT
app_PROGRAMS += uppercase-example-client
app_DATA += uppercase-example-client.xml
endif
if BUILD_MASTER
app_PROGRAMS += uppercase-example-master
app_DATA += uppercase-example-master.xml
endif
CLEANFILES = uppercase-example-client.xml uppercase-example-master.xml
uppercase_example_client_SOURCES = client.c
uppercase_example_client_CPPFLAGS = $(DCAPI_CLIENT_CFLAGS)
uppercase_example_client_LDADD = $(DCAPI_CLIENT_LIBS)
uppercase_example_master_SOURCES = master.c
uppercase_example_master_CPPFLAGS = $(DCAPI_MASTER_CFLAGS)
uppercase_example_master_LDADD = $(DCAPI_MASTER_LIBS)
uppercase-example-client.xml: uppercase-example-client.xml.in
$(SED) -e "s,@PACKAGE_VERSION\@,$(PACKAGE_VERSION)," \
-e "s,@appdir\@,$(appdir)," \
-e "s,@target\@,$(target_triplet)," \
$< > $@
uppercase-example-master.xml: uppercase-example-master.xml.in
$(SED) -e "s,@PACKAGE_VERSION\@,$(PACKAGE_VERSION)," \
-e "s,@appdir\@,$(appdir)," \
-e "s,@target\@,$(target_triplet)," \
$< > $@

View File

@ -33,5 +33,5 @@ if test "$enable_master" = yes; then
AC_MSG_NOTICE([will build master])
fi
AC_CONFIG_FILES([Makefile src/Makefile])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT

View File

@ -1,35 +0,0 @@
appdir = ${libdir}/boinc/apps/uppercase-example
app_PROGRAMS =
app_DATA =
if BUILD_CLIENT
app_PROGRAMS += uppercase-example-client
app_DATA += uppercase-example-client.xml
endif
if BUILD_MASTER
app_PROGRAMS += uppercase-example-master
app_DATA += uppercase-example-master.xml
endif
CLEANFILES = uppercase-example-client.xml uppercase-example-master.xml
uppercase_example_client_SOURCES = client.c
uppercase_example_client_CPPFLAGS = $(DCAPI_CLIENT_CFLAGS)
uppercase_example_client_LDADD = $(DCAPI_CLIENT_LIBS)
uppercase_example_master_SOURCES = master.c
uppercase_example_master_CPPFLAGS = $(DCAPI_MASTER_CFLAGS)
uppercase_example_master_LDADD = $(DCAPI_MASTER_LIBS)
uppercase-example-client.xml: uppercase-example-client.xml.in
$(SED) -e "s,@PACKAGE_VERSION\@,$(PACKAGE_VERSION)," \
-e "s,@appdir\@,$(appdir)," \
-e "s,@target\@,$(target_triplet)," \
$< > $@
uppercase-example-master.xml: uppercase-example-master.xml.in
$(SED) -e "s,@PACKAGE_VERSION\@,$(PACKAGE_VERSION)," \
-e "s,@appdir\@,$(appdir)," \
-e "s,@target\@,$(target_triplet)," \
$< > $@