Makefile.am | Makefile.am | |||
---|---|---|---|---|
# (C) 2009 D. V. Wiebe | # Copyright (C) 2009, 2011 D. V. Wiebe | |||
# | # | |||
########################################################################## | ########################################################################## | |||
# | # | |||
# This file is part of the GetData project. | # This file is part of the GetData project. | |||
# | # | |||
# GetData is free software; you can redistribute it and/or modify it under | # GetData is free software; you can redistribute it and/or modify it under | |||
# the terms of the GNU Lesser General Public License as published by the | # the terms of the GNU Lesser General Public License as published by the | |||
# Free Software Foundation; either version 2.1 of the License, or (at your | # Free Software Foundation; either version 2.1 of the License, or (at your | |||
# option) any later version. | # option) any later version. | |||
# | # | |||
skipping to change at line 33 | skipping to change at line 33 | |||
if CC_WALL | if CC_WALL | |||
WALL=-Wall | WALL=-Wall | |||
endif | endif | |||
if GETDATA_DEBUG | if GETDATA_DEBUG | |||
DEBUG_C = ../../src/debug.c | DEBUG_C = ../../src/debug.c | |||
endif | endif | |||
SUBDIRS=test | SUBDIRS=test | |||
if GDIDL_EXTERNAL | ||||
GDIDL_GETDATA_LIBS=$(GETDATA_LIBS) | ||||
else | ||||
GDIDL_GETDATA_LIBS=../../src/libgetdata.la | ||||
endif | ||||
idl_LTLIBRARIES = idl_getdata.la | idl_LTLIBRARIES = idl_getdata.la | |||
nodist_idl_HEADERS = idl_getdata.dlm | nodist_idl_HEADERS = idl_getdata.dlm | |||
# idl makes heavy use of type punning, ergo -fno-strict-aliasing | # idl makes heavy use of type punning, ergo -fno-strict-aliasing | |||
AM_CFLAGS = ${WALL} $(IDL_CFLAGS) -fno-strict-aliasing | AM_CFLAGS = ${WALL} $(IDL_CFLAGS) -fno-strict-aliasing $(GETDATA_CFLAGS) | |||
BUILT_SOURCES=sublist.c constants.c | BUILT_SOURCES=sublist.c constants.c | |||
idl_getdata_la_LDFLAGS = -module -avoid-version -export-symbols-regex IDL_L oad \ | idl_getdata_la_LDFLAGS = -module -avoid-version -export-symbols-regex IDL_L oad \ | |||
-precious-files-regex 'idl_getdata\.dlm' | -precious-files-regex 'idl_getdata\.dlm' $(IDL_LIBS) | |||
idl_getdata_la_LIBADD = $(IDL_LIBS) ../../src/libgetdata.la | idl_getdata_la_LIBADD = $(GDIDL_GETDATA_LIBS) | |||
idl_getdata_la_SOURCES = getdata.c ${DEBUG_C} | idl_getdata_la_SOURCES = getdata.c | |||
nodist_idl_getdata_la_SOURCES = constants.c sublist.c | nodist_idl_getdata_la_SOURCES = constants.c sublist.c ${DEBUG_C} | |||
sublist.c: getdata.c makedlm.sh | sublist.c.in: getdata.c makedlm.sh | |||
${SHELL} ./makedlm.sh -c $< > $@ | ${SHELL} ./makedlm.sh -c $< > $@ | |||
sublist.c: sublist.stamp | ||||
@if test ! -f $@; then \ | ||||
rm -f $<; \ | ||||
$(MAKE) $<; \ | ||||
fi | ||||
if HAVE_DIFF | ||||
sublist.stamp: sublist.c.in | ||||
@if $(DIFF) sublist.c sublist.c.in >/dev/null 2>&1; then \ | ||||
echo "sublist.c is unchanged"; \ | ||||
else \ | ||||
rm -f sublist.c; \ | ||||
cp sublist.c.in sublist.c; \ | ||||
fi; \ | ||||
touch sublist.stamp | ||||
else | ||||
sublist.stamp: sublist.c.in | ||||
@rm -f sublist.c; \ | ||||
cp sublist.c.in sublist.c; \ | ||||
touch sublist.stamp | ||||
endif | ||||
constants.c: ../make_parameters | constants.c: ../make_parameters | |||
../make_parameters i > $@ | ../make_parameters i > $@ | |||
../make_parameters: ../make_parameters.c | ../make_parameters: ../make_parameters.c | |||
cd .. && ${MAKE} make_parameters | cd .. && ${MAKE} make_parameters | |||
idl_getdata.dlm: getdata.c makedlm.sh | idl_getdata.dlm: getdata.c makedlm.sh | |||
${SHELL} ./makedlm.sh -d $< > $@ | ${SHELL} ./makedlm.sh -d $< > $@ | |||
all-local: .libs/idl_getdata.dlm | all-local: .libs/idl_getdata.dlm | |||
# This is required to properly run the test suite | # This is required to properly run the test suite | |||
.libs/idl_getdata.dlm: idl_getdata.dlm | .libs/idl_getdata.dlm: idl_getdata.dlm | |||
if [ ! -e .libs ]; then mkdir -p .libs; fi | if [ ! -e .libs ]; then mkdir -p .libs; fi | |||
cp $< .libs | cp $< .libs | |||
clean-local: | clean-local: | |||
rm -rf ${BUILT_SOURCES} *~ idl_getdata.dlm makedlm.sh | rm -rf ${BUILT_SOURCES} *~ idl_getdata.dlm makedlm.sh sublist.c.in s ublist.stamp | |||
End of changes. 7 change blocks. | ||||
8 lines changed or deleted | 40 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |