+#--------------------------------------------------------------------
+#Executable generation area
+#--------------------------------------------------------------------
+debug :
+ @ $(MAKE) OPTIME="-g" DEBUG="-DDEBUG" exe
+ @ echo "application compiled in '$@' mode now ready"
+
+prod :
+ @ $(MAKE) OPTIME="-g2" exe
+ @ echo "application compiled in '$@' mode now ready"
+
+exe :
+ $(MAKE) $(EXE)
+
+
clean :
+ - rm -fr *.o $(EXE)
+ - rm -fr ../bin/*
+
+#--------------------------------------------------------------------
+#Equivalences
+#--------------------------------------------------------------------
+EXE= \
+ mailled \
+
+SRC= \
+ mailled.c \
+
+#--------------------------------------------------------------------
+#definitions
+#--------------------------------------------------------------------
+CC = gcc
+LD = gcc
+CFLAGS = -I ../lib -Wall $(OPTIME)
+LIBAI = ../lib/libAI.a
+LIBS = $(LIBAI)
+#--------------------------------------------------------------------
+#Dependances
+#--------------------------------------------------------------------
+mailled : toremake mailled.o
+ @ $(LD) $(LDFLAGS) -o ../bin/$@ $@.o $(LIBS)
+
+toremake: Makefile $(LIBAI)
+ touch toremake
+ - rm -f $(EXE) *.o
+
+#--------------------------------------------------------------------
--- /dev/null
+// vim: smarttab tabstop=8 shiftwidth=2 expandtab
+/********************************************************/
+/* */
+/* Main SMTP Daemon */
+/* */
+/********************************************************/
+#include <stdbool.h>
+#include <stdlib.h>
+
+/*
+\f
+*/
+/********************************************************/
+/* */
+/* */
+/********************************************************/
+/*
+\f
+*/
+/********************************************************/
+/* */
+/* Main routine */
+/* Start multiple SMTP daemon and make */
+/* sure there always ready to answer to */
+/* SMTP request. */
+/* */
+/********************************************************/
+int main(int argc,char *argv[])
+
+{
+int status;
+int phase;
+_Bool proceed;
+
+status=0;
+phase=0;
+proceed=true;
+while (proceed==true) {
+ switch (phase) {
+ case 0 : //initialising process
+ break;
+ case 1 : //checking parameters
+ break;
+ default : //end of task
+ proceed=false;
+ break;
+ }
+ phase++;
+ }
+(void) exit(status);
+}
+#--------------------------------------------------------------------
+#Executable generation area
+#--------------------------------------------------------------------
+debug : toremake
+ @ $(MAKE) $(PAR) OPTIME="-g" objs
+ @ echo "library compiled in '$@' mode, now ready"
+
+prod : toremake
+ @ $(MAKE) $(PAR) OPTIME="-O3" objs
+ @ echo "library compiled in '$@' mode, now ready"
+
clean :
+ - rm -fr *.o *.a
+
+#--------------------------------------------------------------------
+#Equivalences
+#--------------------------------------------------------------------
+OBJS= \
+ subrou.o
+
+objs : $(OBJS)
+ @ ar -cr libAI.a $(OBJS)
+
+#--------------------------------------------------------------------
+#Dependances
+
+subrou.o: \
+ subrou.h subrou.c
+
+#--------------------------------------------------------------------
+
+toremake: Makefile
+ touch toremake
+ - rm -f $(OBJS) libAI.a
+
+#--------------------------------------------------------------------
+#definitions
+#--------------------------------------------------------------------
+CC = gcc
+LD = gcc
+CFLAGS = -Wall $(OPTIME)
+LIBAI = libAI
+PAR = -j`/usr/bin/getconf _NPROCESSORS_ONLN`
+#--------------------------------------------------------------------
+// vim: smarttab tabstop=8 shiftwidth=2 expandtab
+/********************************************************/
+/* */
+/* Module for low level subroutine */
+/* */
+/********************************************************/
+#include "subrou.h"
+
+
+//version definition
+#define VERSION "0.1"
+#define RELEASE "1"
--- /dev/null
+// vim: smarttab tabstop=8 shiftwidth=2 expandtab
+/************************************************/
+/* */
+/* Low level subroutine declaration */
+/* */
+/************************************************/
+#ifndef SUBROU
+#define SUBROU
+
+#include <linux/types.h>
+#include <stdarg.h>
+
+#define APPNAME "mailled" //application name
+
+#endif