Commit cf1158bc authored by Seblu's avatar Seblu
Browse files

autotools compile maintenant dans le repertoire ou le configure est fait
parent 3229f519
Loading
Loading
Loading
Loading
+48 −9
Original line number Diff line number Diff line
SUBDIRS = 	src
bin_PROGRAMS=42sh

42sh_SOURCES=	src/ast/ast.h				\
		src/ast/ast_and.c			\
		src/ast/ast_bang.c			\
		src/ast/ast_case.c			\
		src/ast/ast_cmd.c			\
		src/ast/ast_destruct.c			\
		src/ast/ast_for.c			\
		src/ast/ast_funcdec.c			\
		src/ast/ast_if.c			\
		src/ast/ast_or.c			\
		src/ast/ast_pipe.c			\
		src/ast/ast_print.c			\
		src/ast/ast_red.c			\
		src/ast/ast_sep.c			\
		src/ast/ast_sepand.c			\
		src/ast/ast_subshell.c			\
		src/ast/ast_while.c			\
		src/common/basename.c			\
		src/common/common.h			\
		src/common/constant.h			\
		src/common/isdigitstr.c			\
		src/common/macro.h			\
		src/common/strmerge.c			\
		src/common/strvectoradd.c		\
		src/common/strvmerge.c			\
		src/common/strndup.c			\
		src/exec/exec.h				\
		src/exec/exec_node.c			\
		src/parser/alias.h			\
		src/parser/alias.c			\
		src/parser/getline.h			\
		src/parser/getline.c			\
		src/parser/parser.h			\
		src/parser/parser.c			\
		src/parser/lexer.c			\
		src/shell/getoptions.c			\
		src/shell/option.h			\
		src/shell/option.c			\
		src/shell/shell.h			\
		src/shell/shell_entry.c			\
		src/shell/shell_init.c			\
		src/shell/shell_destroy.c		\
		src/shell/prompt.c

noinst_DATA=42sh$(EXEEXT)
DISTCLEANFILES=42sh$(EXEEXT)
CLEANFILES= *~ '\#*'

.PHONY: tar doc re
EXTRA_DIST = AUTHORS README TODO

42sh$(EXEEXT): src/42sh$(EXEEXT)
.PHONY: tar doc re

tar: distcheck

@@ -13,7 +56,3 @@ re: clean all

doc:
	cd $(srcdir)/doc && $(MAKE) doc

CLEANFILES= *~ '\#*'

EXTRA_DIST = AUTHORS README TODO
+4 −1
Original line number Diff line number Diff line
@@ -6,3 +6,6 @@ Maintenant il renvoie EOF a la place du token.
- Parser
-- aliases
-- history

- Option
-- voir probleme de non initialisation envoye par valgrind a chaque tour de boucle
 No newline at end of file
+11 −2
Original line number Diff line number Diff line
@@ -100,6 +100,16 @@ AC_ARG_WITH([noerror],
  ]
)

AC_ARG_WITH([dynamic],
  [AS_HELP_STRING([--with-dynamic], [Compiling with dynamic libraries])],
  [dnl action-if-given
       dynamic=true
  ],
  [dnl action-if-not-given
       dynamic=false
  ]
)

AC_ARG_WITH([debug],
  [AS_HELP_STRING([--with-debug], [use -g and don't use -DNDEBUG -O3])],
  [dnl action-if-given
@@ -117,7 +127,7 @@ AC_ARG_WITH([efence],
       CFLAGS="$CFLAGS -include stdlib.h -include efence.h"
  ],
  [dnl action-if-not-given
       LDFLAGS="$LDFLAGS -static"
       test "$dynamic" = "true" || LDFLAGS="$LDFLAGS -static"
  ]
)

@@ -131,7 +141,6 @@ AC_CONFIG_HEADERS([config.h])
# define Autoconf config files
AC_CONFIG_FILES([
	Makefile
	src/Makefile
])

AC_OUTPUT
 No newline at end of file
+25 −0
Original line number Diff line number Diff line
.TH 42sh 1 "2006 jan 21"
.SH NAME
42sh \- The 42 Shell
.SH SYNOPSIS
\fB42sh\fP [options] [file]
.SH DESCRIPTION
42sh is a complete implementation of a standard shell.
.SS Options
option petace
.TP
\fB-c\fP
Cafe chaud
.SH FILES
.TP
\fI~/.42shrc\fP
The personal initialization file
.TP
\fI/etc/42shrc\fP
The systemwide initialization file
.SH AUTHORS
Sebastien LUTTRINGER
.br
seblu@seblu.net
.SH "SEE ALSO"
bash (1)
 No newline at end of file
+0 −1
Original line number Diff line number Diff line
#SUBDIRS=
bin_PROGRAMS=42sh

#42sh_LDADD  = parser/libparse.a ../check/leaktrack/libmem.a evalexpr/libevalexpr.a
Loading