Loading Makefiledeleted 100644 → 0 +0 −15 Original line number Diff line number Diff line .PHONY: all clean distclean all: sudoku sudoku: sudoku.o grid.o g++ -Wall -Wextra -pedantic -ansi -g $^ -o $@ %.o:%.cc sudoku.hh g++ -Wall -Wextra -pedantic -ansi -g $< -o $@ -c clean: rm -f *.o *~ \#*\# distclean: clean rm -f sudoku No newline at end of file Makefile.am 0 → 100644 +13 −0 Original line number Diff line number Diff line bin_PROGRAMS=sudoku sudoku_SOURCES= src/sudoku.hh \ src/sudoku.cc \ src/grid.cc CLEANFILES= *~ '\#*' .PHONY: tar re tar: distcheck re: clean all bootstrap 0 → 100755 +21 −0 Original line number Diff line number Diff line #!/bin/sh ## bootstrap for 42sh in /home/seblu/devel/c/42sh ## ## Made by Seblu ## Login <seblu@epita.fr> ## ## Started on Sun Jul 16 19:43:53 2006 Seblu ## Last update Sun Jul 16 19:44:01 2006 Seblu ## # Failures do matter. set -e # See what i'am doing set -x # install the GNU Build System. autoreconf -i -f -v # FIXME: autoheader does not obey --force. find . -name 'config.h.in' | xargs touch No newline at end of file configure.ac 0 → 100644 +84 −0 Original line number Diff line number Diff line # Require a recent version of autotools AC_PREREQ(2.59) # Auto conf init AC_INIT([sudoku],[1.0],[seblu@seblu.net], [sudoku]) # Define configure generator directory AC_CONFIG_AUX_DIR([build]) # Auto Make init AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip]) # Check platform AC_CANONICAL_HOST CXXFLAGS='-Wall -W -ansi -pedantic -D_XOPEN_SOURCE=600' # Check for C++ compiler AC_LANG([C++]) AC_PROG_CXX # Check for Make AC_PROG_MAKE_SET # check for ranlib AC_PROG_RANLIB # Check for lib efence AC_CHECK_LIB([efence], [malloc], [EFENCELIB=-lefence]) AC_SUBST([EFENCELIB]) # Checks for library functions. # Checks for typedefs, structures, and compiler characteristics. # Check for headers dnl Memo: dnl AC ARG WITH(package, help-string, [action-if-given], [action-if-not-given]) AC_ARG_WITH([noerror], [AS_HELP_STRING([--with-noerror], [Warning dont create compilation error])], [dnl action-if-given true ], [dnl action-if-not-given CXXFLAGS="$CFLAGS -Werror" ] ) AC_ARG_WITH([debug], [AS_HELP_STRING([--with-debug], [use -g and don't use -DNDEBUG -O3])], [dnl action-if-given CXXFLAGS="$CFLAGS -g" ], [dnl action-if-not-given CXXFLAGS="$CFLAGS -DNDEBUG -O3" ] ) AC_ARG_WITH([efence], [AS_HELP_STRING([--with-efence], [link with lib efence])], [dnl action-if-given LDFLAGS="$LDFLAGS -lefence" CXXFLAGS="$CXXFLAGS -include stdlib.h -include efence.h" ], [dnl action-if-not-given test "$dynamic" = "true" || LDFLAGS="$LDFLAGS -static" ] ) AC_SUBST([CXXFLAGS]) AC_SUBST([LDFLAGS]) # define Autoconf config header AC_CONFIG_HEADERS([config.h]) # define Autoconf config files AC_CONFIG_FILES([ Makefile ]) AC_OUTPUT No newline at end of file grid.cc→src/grid.cc +0 −0 File moved. View file Loading
Makefiledeleted 100644 → 0 +0 −15 Original line number Diff line number Diff line .PHONY: all clean distclean all: sudoku sudoku: sudoku.o grid.o g++ -Wall -Wextra -pedantic -ansi -g $^ -o $@ %.o:%.cc sudoku.hh g++ -Wall -Wextra -pedantic -ansi -g $< -o $@ -c clean: rm -f *.o *~ \#*\# distclean: clean rm -f sudoku No newline at end of file
Makefile.am 0 → 100644 +13 −0 Original line number Diff line number Diff line bin_PROGRAMS=sudoku sudoku_SOURCES= src/sudoku.hh \ src/sudoku.cc \ src/grid.cc CLEANFILES= *~ '\#*' .PHONY: tar re tar: distcheck re: clean all
bootstrap 0 → 100755 +21 −0 Original line number Diff line number Diff line #!/bin/sh ## bootstrap for 42sh in /home/seblu/devel/c/42sh ## ## Made by Seblu ## Login <seblu@epita.fr> ## ## Started on Sun Jul 16 19:43:53 2006 Seblu ## Last update Sun Jul 16 19:44:01 2006 Seblu ## # Failures do matter. set -e # See what i'am doing set -x # install the GNU Build System. autoreconf -i -f -v # FIXME: autoheader does not obey --force. find . -name 'config.h.in' | xargs touch No newline at end of file
configure.ac 0 → 100644 +84 −0 Original line number Diff line number Diff line # Require a recent version of autotools AC_PREREQ(2.59) # Auto conf init AC_INIT([sudoku],[1.0],[seblu@seblu.net], [sudoku]) # Define configure generator directory AC_CONFIG_AUX_DIR([build]) # Auto Make init AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip]) # Check platform AC_CANONICAL_HOST CXXFLAGS='-Wall -W -ansi -pedantic -D_XOPEN_SOURCE=600' # Check for C++ compiler AC_LANG([C++]) AC_PROG_CXX # Check for Make AC_PROG_MAKE_SET # check for ranlib AC_PROG_RANLIB # Check for lib efence AC_CHECK_LIB([efence], [malloc], [EFENCELIB=-lefence]) AC_SUBST([EFENCELIB]) # Checks for library functions. # Checks for typedefs, structures, and compiler characteristics. # Check for headers dnl Memo: dnl AC ARG WITH(package, help-string, [action-if-given], [action-if-not-given]) AC_ARG_WITH([noerror], [AS_HELP_STRING([--with-noerror], [Warning dont create compilation error])], [dnl action-if-given true ], [dnl action-if-not-given CXXFLAGS="$CFLAGS -Werror" ] ) AC_ARG_WITH([debug], [AS_HELP_STRING([--with-debug], [use -g and don't use -DNDEBUG -O3])], [dnl action-if-given CXXFLAGS="$CFLAGS -g" ], [dnl action-if-not-given CXXFLAGS="$CFLAGS -DNDEBUG -O3" ] ) AC_ARG_WITH([efence], [AS_HELP_STRING([--with-efence], [link with lib efence])], [dnl action-if-given LDFLAGS="$LDFLAGS -lefence" CXXFLAGS="$CXXFLAGS -include stdlib.h -include efence.h" ], [dnl action-if-not-given test "$dynamic" = "true" || LDFLAGS="$LDFLAGS -static" ] ) AC_SUBST([CXXFLAGS]) AC_SUBST([LDFLAGS]) # define Autoconf config header AC_CONFIG_HEADERS([config.h]) # define Autoconf config files AC_CONFIG_FILES([ Makefile ]) AC_OUTPUT No newline at end of file