diff options
author | jofret | 2007-03-23 10:05:02 +0000 |
---|---|---|
committer | jofret | 2007-03-23 10:05:02 +0000 |
commit | 423b129433254f7c4e5c4a0be5730d0d1c5454ab (patch) | |
tree | 37a157eb5429b445282848ecb299e3428bfcb47e /src/type | |
parent | e733d0ce2c4d804896031c0789fa192106508a35 (diff) | |
download | scilab2c-423b129433254f7c4e5c4a0be5730d0d1c5454ab.tar.gz scilab2c-423b129433254f7c4e5c4a0be5730d0d1c5454ab.tar.bz2 scilab2c-423b129433254f7c4e5c4a0be5730d0d1c5454ab.zip |
* src/type/Makefile :
Removed : delegate to AutoTools.
* src/type/Makefile.am :
Automake file.
* src/type/Makefile.in :
Automake generated file : ./configure needed.
* src/type/testFloatComplex.c :
Test Float Complex generation :
Assert + AutoCheck through AutoTools.
* src/type/testDoubleComplex.c :
Test Double Complex generation :
Assert + AutoCheck through AutoTools.
Diffstat (limited to 'src/type')
-rw-r--r-- | src/type/Makefile | 66 | ||||
-rw-r--r-- | src/type/Makefile.am | 39 | ||||
-rw-r--r-- | src/type/Makefile.in | 558 | ||||
-rw-r--r-- | src/type/testDoubleComplex.c | 36 | ||||
-rw-r--r-- | src/type/testFloatComplex.c | 34 |
5 files changed, 646 insertions, 87 deletions
diff --git a/src/type/Makefile b/src/type/Makefile deleted file mode 100644 index b7ed4846..00000000 --- a/src/type/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -## -## -*- makefile -*- -## -## Makefile -## Made by Bruno JOFRET <bruno.jofret@inria.fr> -## -## Started on Thu Nov 30 16:33:40 2006 jofret -## Last update Fri Feb 2 15:37:53 2007 jofret -## -## Copyright INRIA 2006 -## - -RM = rm -f -CC = gcc -CFLAGS = -Wall -pedantic -ansi $(STANDARD) -AR = ar cru -RANLIB = ranlib - -OBJS = $(DCOBJ) $(FCOBJ) $(TESTDCOBJ) $(TESTFCOBJ) -LIBS = $(DCLIB) $(FCLIB) -TESTS = $(TESTDC) $(TESTFC) - -### test -TESTDCSRC = testDoubleComplex.c -TESTDCOBJ = $(TESTDCSRC:.c=.o) -TESTDC = testDoubleComplex - -### Double Complex -DCLIB = ../lib/libDoubleComplex.a -DCSRC = doubleComplex.c -DCHEAD = doubleComplex.h -DCOBJ = $(DCSRC:.c=.o) - -### Float Complex -FCLIB = ../lib/libFloatComplex.a -FCSRC = floatComplex.c -FCHEAD = floatComplex.h -FCOBJ = $(FCSRC:.c=.o) - - -all: $(LIBS) - -$(DCLIB) : $(DCHEAD) $(DCOBJ) - $(AR) $@ $(DCOBJ) - $(RANLIB) $@ - -$(FCLIB) : $(FCHEAD) $(FCOBJ) - $(AR) $@ $(FCOBJ) - $(RANLIB) $@ - -test: $(TESTDC) - - -$(TESTDC) : $(DCOBJ) $(TESTDCOBJ) - $(CC) $(CFLAGS) $(DCOBJ) $(TESTDCOBJ) -o $@ - -clean: - $(RM) $(OBJS) - -distclean: clean - $(RM) $(LIBS) $(TESTS) - -re: clean all - -retest: clean test - diff --git a/src/type/Makefile.am b/src/type/Makefile.am new file mode 100644 index 00000000..dde8532c --- /dev/null +++ b/src/type/Makefile.am @@ -0,0 +1,39 @@ +## +## -*- makefile -*- +## +## Makefile.am +## Made by Bruno JOFRET <bruno.jofret@inria.fr> +## +## Started on Thu Nov 30 16:33:40 2006 jofret +## Last update Fri Mar 23 10:46:35 2007 jofret +## +## Copyright INRIA 2006 +## + +instdir = $(topdir)/lib + +inst_LIBRARIES = libDoubleComplex.a libFloatComplex.a + +noinst_LIBRARIES = libDoubleComplex.a libFloatComplex.a + +libDoubleComplex_a_SOURCES = $(DCHEAD) $(DCSRC) + +libFloatComplex_a_SOURCES = $(FCHEAD) $(FCSRC) + +check_PROGRAMS = testDoubleComplex testFloatComplex + +testDoubleComplex_SOURCES = testDoubleComplex.c +testDoubleComplex_LDADD = libDoubleComplex.a + +testFloatComplex_SOURCES = testFloatComplex.c +testFloatComplex_LDADD = libFloatComplex.a + +TESTS = testDoubleComplex testFloatComplex + +### Double Complex +DCSRC = doubleComplex.c +DCHEAD = doubleComplex.h + +### Float Complex +FCSRC = floatComplex.c +FCHEAD = floatComplex.h diff --git a/src/type/Makefile.in b/src/type/Makefile.in new file mode 100644 index 00000000..5e9a9c4f --- /dev/null +++ b/src/type/Makefile.in @@ -0,0 +1,558 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +check_PROGRAMS = testDoubleComplex$(EXEEXT) testFloatComplex$(EXEEXT) +subdir = type +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/fftw.m4 \ + $(top_srcdir)/m4/fortran.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/includes/machine.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(instdir)" +instLIBRARIES_INSTALL = $(INSTALL_DATA) +LIBRARIES = $(inst_LIBRARIES) $(noinst_LIBRARIES) +AR = ar +ARFLAGS = cru +libDoubleComplex_a_AR = $(AR) $(ARFLAGS) +libDoubleComplex_a_LIBADD = +am__objects_1 = +am__objects_2 = doubleComplex.$(OBJEXT) +am_libDoubleComplex_a_OBJECTS = $(am__objects_1) $(am__objects_2) +libDoubleComplex_a_OBJECTS = $(am_libDoubleComplex_a_OBJECTS) +libFloatComplex_a_AR = $(AR) $(ARFLAGS) +libFloatComplex_a_LIBADD = +am__objects_3 = floatComplex.$(OBJEXT) +am_libFloatComplex_a_OBJECTS = $(am__objects_1) $(am__objects_3) +libFloatComplex_a_OBJECTS = $(am_libFloatComplex_a_OBJECTS) +am_testDoubleComplex_OBJECTS = testDoubleComplex.$(OBJEXT) +testDoubleComplex_OBJECTS = $(am_testDoubleComplex_OBJECTS) +testDoubleComplex_DEPENDENCIES = libDoubleComplex.a +am_testFloatComplex_OBJECTS = testFloatComplex.$(OBJEXT) +testFloatComplex_OBJECTS = $(am_testFloatComplex_OBJECTS) +testFloatComplex_DEPENDENCIES = libFloatComplex.a +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/includes +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(libDoubleComplex_a_SOURCES) $(libFloatComplex_a_SOURCES) \ + $(testDoubleComplex_SOURCES) $(testFloatComplex_SOURCES) +DIST_SOURCES = $(libDoubleComplex_a_SOURCES) \ + $(libFloatComplex_a_SOURCES) $(testDoubleComplex_SOURCES) \ + $(testFloatComplex_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +FFTW3_LIB = @FFTW3_LIB@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +ac_ct_RANLIB = @ac_ct_RANLIB@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +instdir = $(topdir)/lib +inst_LIBRARIES = libDoubleComplex.a libFloatComplex.a +noinst_LIBRARIES = libDoubleComplex.a libFloatComplex.a +libDoubleComplex_a_SOURCES = $(DCHEAD) $(DCSRC) +libFloatComplex_a_SOURCES = $(FCHEAD) $(FCSRC) +testDoubleComplex_SOURCES = testDoubleComplex.c +testDoubleComplex_LDADD = libDoubleComplex.a +testFloatComplex_SOURCES = testFloatComplex.c +testFloatComplex_LDADD = libFloatComplex.a +TESTS = testDoubleComplex testFloatComplex + +### Double Complex +DCSRC = doubleComplex.c +DCHEAD = doubleComplex.h + +### Float Complex +FCSRC = floatComplex.c +FCHEAD = floatComplex.h +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign type/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign type/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-instLIBRARIES: $(inst_LIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(instdir)" || $(mkdir_p) "$(DESTDIR)$(instdir)" + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(instLIBRARIES_INSTALL) '$$p' '$(DESTDIR)$(instdir)/$$f'"; \ + $(instLIBRARIES_INSTALL) "$$p" "$(DESTDIR)$(instdir)/$$f"; \ + else :; fi; \ + done + @$(POST_INSTALL) + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + p=$(am__strip_dir) \ + echo " $(RANLIB) '$(DESTDIR)$(instdir)/$$p'"; \ + $(RANLIB) "$(DESTDIR)$(instdir)/$$p"; \ + else :; fi; \ + done + +uninstall-instLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(instdir)/$$p'"; \ + rm -f "$(DESTDIR)$(instdir)/$$p"; \ + done + +clean-instLIBRARIES: + -test -z "$(inst_LIBRARIES)" || rm -f $(inst_LIBRARIES) + +clean-noinstLIBRARIES: + -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) +libDoubleComplex.a: $(libDoubleComplex_a_OBJECTS) $(libDoubleComplex_a_DEPENDENCIES) + -rm -f libDoubleComplex.a + $(libDoubleComplex_a_AR) libDoubleComplex.a $(libDoubleComplex_a_OBJECTS) $(libDoubleComplex_a_LIBADD) + $(RANLIB) libDoubleComplex.a +libFloatComplex.a: $(libFloatComplex_a_OBJECTS) $(libFloatComplex_a_DEPENDENCIES) + -rm -f libFloatComplex.a + $(libFloatComplex_a_AR) libFloatComplex.a $(libFloatComplex_a_OBJECTS) $(libFloatComplex_a_LIBADD) + $(RANLIB) libFloatComplex.a + +clean-checkPROGRAMS: + -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS) +testDoubleComplex$(EXEEXT): $(testDoubleComplex_OBJECTS) $(testDoubleComplex_DEPENDENCIES) + @rm -f testDoubleComplex$(EXEEXT) + $(LINK) $(testDoubleComplex_LDFLAGS) $(testDoubleComplex_OBJECTS) $(testDoubleComplex_LDADD) $(LIBS) +testFloatComplex$(EXEEXT): $(testFloatComplex_OBJECTS) $(testFloatComplex_DEPENDENCIES) + @rm -f testFloatComplex$(EXEEXT) + $(LINK) $(testFloatComplex_LDFLAGS) $(testFloatComplex_OBJECTS) $(testFloatComplex_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/doubleComplex.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/floatComplex.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testDoubleComplex.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testFloatComplex.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` +uninstall-info-am: + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +check-TESTS: $(TESTS) + @failed=0; all=0; xfail=0; xpass=0; skip=0; \ + srcdir=$(srcdir); export srcdir; \ + list='$(TESTS)'; \ + if test -n "$$list"; then \ + for tst in $$list; do \ + if test -f ./$$tst; then dir=./; \ + elif test -f $$tst; then dir=; \ + else dir="$(srcdir)/"; fi; \ + if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *" $$tst "*) \ + xpass=`expr $$xpass + 1`; \ + failed=`expr $$failed + 1`; \ + echo "XPASS: $$tst"; \ + ;; \ + *) \ + echo "PASS: $$tst"; \ + ;; \ + esac; \ + elif test $$? -ne 77; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *" $$tst "*) \ + xfail=`expr $$xfail + 1`; \ + echo "XFAIL: $$tst"; \ + ;; \ + *) \ + failed=`expr $$failed + 1`; \ + echo "FAIL: $$tst"; \ + ;; \ + esac; \ + else \ + skip=`expr $$skip + 1`; \ + echo "SKIP: $$tst"; \ + fi; \ + done; \ + if test "$$failed" -eq 0; then \ + if test "$$xfail" -eq 0; then \ + banner="All $$all tests passed"; \ + else \ + banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ + fi; \ + else \ + if test "$$xpass" -eq 0; then \ + banner="$$failed of $$all tests failed"; \ + else \ + banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ + fi; \ + fi; \ + dashes="$$banner"; \ + skipped=""; \ + if test "$$skip" -ne 0; then \ + skipped="($$skip tests were not run)"; \ + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$skipped"; \ + fi; \ + report=""; \ + if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ + report="Please report to $(PACKAGE_BUGREPORT)"; \ + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$report"; \ + fi; \ + dashes=`echo "$$dashes" | sed s/./=/g`; \ + echo "$$dashes"; \ + echo "$$banner"; \ + test -z "$$skipped" || echo "$$skipped"; \ + test -z "$$report" || echo "$$report"; \ + echo "$$dashes"; \ + test "$$failed" -eq 0; \ + else :; fi + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) + $(MAKE) $(AM_MAKEFLAGS) check-TESTS +check: check-am +all-am: Makefile $(LIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(instdir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-checkPROGRAMS clean-generic clean-instLIBRARIES \ + clean-noinstLIBRARIES mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-instLIBRARIES + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am uninstall-instLIBRARIES + +.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ + clean-checkPROGRAMS clean-generic clean-instLIBRARIES \ + clean-noinstLIBRARIES ctags distclean distclean-compile \ + distclean-generic distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-exec install-exec-am install-info \ + install-info-am install-instLIBRARIES install-man \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-info-am \ + uninstall-instLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/type/testDoubleComplex.c b/src/type/testDoubleComplex.c index 704613c0..0823a39b 100644 --- a/src/type/testDoubleComplex.c +++ b/src/type/testDoubleComplex.c @@ -5,36 +5,30 @@ ** Made by Bruno JOFRET <bruno.jofret@inria.fr> ** ** Started on Thu Nov 30 16:59:04 2006 jofret -** Last update Fri Feb 23 16:19:35 2007 jofret +** Last update Fri Mar 23 11:11:25 2007 jofret ** ** Copyright INRIA 2006 */ -#ifdef __STDC_VERSION__ -# ifndef STDC -# define STDC -# endif -# if __STDC_VERSION__ >= 199901L -# ifndef STDC99 -# define STDC99 -# endif -# endif -#endif - -#ifndef STDC99 -# include <stdio.h> -# include "doubleComplex.h" -#else -# include <stdio.h> -# include <complex.h> -# include "doubleComplexC99.h" -#endif - +#include <stdio.h> +#include <assert.h> +#include "doubleComplex.h" int main(int argc, char **argv) { /* z = -3 + 25*%i */ doubleComplex z = DoubleComplex(-3,25); printf("Partie reelle = %f\n", zreals(z)); + assert(zreals(z) == -3); printf("Partie imaginaire = %f\n", zimags(z)); + assert(zimags(z) == 25); + + /* z = -3.123456 + 25.123456*%i */ + z = DoubleComplex(-3.123456,25.123456); + printf("Partie reelle = %f\n", zreals(z)); + assert(zreals(z) == (double)-3.123456); + printf("Partie imaginaire = %f\n", zimags(z)); + assert(zimags(z) == (double)25.123456); + + return 0; } diff --git a/src/type/testFloatComplex.c b/src/type/testFloatComplex.c new file mode 100644 index 00000000..869cca33 --- /dev/null +++ b/src/type/testFloatComplex.c @@ -0,0 +1,34 @@ +/* +** -*- C -*- +** +** main.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Nov 30 16:59:04 2006 jofret +** Last update Fri Mar 23 11:10:37 2007 jofret +** +** Copyright INRIA 2006 +*/ + +#include <stdio.h> +#include <assert.h> +#include "floatComplex.h" + +int main(int argc, char **argv) { + /* z = -3 + 25*%i */ + floatComplex z = FloatComplex(-3,25); + printf("Partie reelle = %f\n", creals(z)); + assert(creals(z) == -3); + printf("Partie imaginaire = %f\n", cimags(z)); + assert(cimags(z) == 25); + + /* z = -3.123456 + 25.123456*%i */ + z = FloatComplex(-3.123456,25.123456); + printf("Partie reelle = %f\n", creals(z)); + assert(creals(z) == (float)-3.123456); + printf("Partie imaginaire = %f\n", cimags(z)); + assert(cimags(z) == (float)25.123456); + + + return 0; +} |