# fcron's Makefile ########
############################
-# $Id: Makefile.in,v 1.23 2000-08-22 18:01:41 thib Exp $
+# $Id: Makefile.in,v 1.24 2000-08-28 18:00:24 thib Exp $
# ********************************************************* #
# *** Begin of configurable stuffs ************************ #
# -DDEBUG even more verbose
# -DCHECKJOBS send a mail containing the exact shell command
# for each execution of each job.
-#OPTIM= -DDEBUG -g -DFOREGROUND
-#OPTIM= -DDEBUG -DCHECKJOBS -Wall -Wpointer-arith -Wstrict-prototypes
+OPTIM= -DDEBUG -g -DFOREGROUND
#OPTIM= -DDEBUG -g -DCHECKJOBS -Wall -Wpointer-arith -Wstrict-prototypes
#OPTIM= -DDEBUG -Wall -Wpointer-arith -Wstrict-prototypes
-OPTIM= -O2 -Wall
+#OPTIM= -O2 -Wall
#OPTIM= -O3 -mcpu=i686 -Wall
CFLAGS= $(INCLUDE) $(OPTIM) $(OTHERFLAGS) $(OPTION) -DVERSION=\"$(VERSION)\" -DFCRONTABS=\"$(FCRONTABS)\" -DETC=\"$(ETC)\"
OBJSD = fcron.o subs.o database.o job.o log.o conf.o
OBJS= fcrontab.o fileconf.o subs.o log.o allow.c
-HEADERSD = fcron.h config.h global.h Makefile
-HEADERS = fcrontab.h config.h global.h Makefile
+HEADERSD = fcron.h config.h global.h Makefile option.h
+HEADERS = fcrontab.h config.h global.h Makefile option.h
# this is two regular expressions
RCSNOLOG=.*\(.html\|VERSION\|MANIFEST\)
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: fcron.h,v 1.9 2000-06-21 09:48:58 thib Exp $ */
+ /* $Id: fcron.h,v 1.10 2000-08-28 17:59:15 thib Exp $ */
#ifndef __FCRONH__
#define __FCRONH__
extern struct CL **exe_array;
extern short int exe_array_size;
extern short int exe_num;
+extern struct lavg *lavg_array;
+extern short int lavg_array_size;
+extern short int lavg_num;
/* end of global variables */
extern void wait_chld(void);
extern void wait_all(int *counter);
extern time_t time_to_sleep(time_t lim);
+extern time_t check_lavg(time_t lim);
extern void set_next_exe(CL *line, char is_new_line);
extern void insert_nextexe(CL *line);
extern void add_serial_job(CL *line);
+extern void add_lavg_job(CL *line);
extern void run_serial_job(void);
/* end of database.c */