-# $Id: GNUmakefile,v 1.7 2006/10/28 22:02:52 mmondor Exp $
+# $Id: GNUmakefile,v 1.8 2006/12/14 17:13:58 mmondor Exp $
#CFLAGS += -g
CFLAGS += -Wall
all: js-sh
%.o: %.c
- cc -c $(CFLAGS) -o $@ $<
+ $(CC) -c $(CFLAGS) -o $@ $<
js-sh: $(OBJ) $(MMOBJS) $(JSOBJS)
- cc -o $@ $(OBJ) $(LDFLAGS) -lc $(MMOBJS) $(JSOBJS)
+ $(CC) -o $@ $(OBJ) $(LDFLAGS) -lc $(MMOBJS) $(JSOBJS)
clean:
rm -f js-sh $(OBJ) $(MMOBJS) $(JSOBJS)
-/* $Id: js-sh.c,v 1.10 2006/10/28 22:02:52 mmondor Exp $ */
+/* $Id: js-sh.c,v 1.11 2006/12/14 17:13:58 mmondor Exp $ */
/*
* Copyright (c) 2004-2005, Matthew Mondor
#include <js_dir.h>
#include <js_gd.h>
#include <js_syslog.h>
+#include <js_fs.h>
JSContext *ctx;
JSObject *global, *class_syslog, *class_fd, *class_errno,
*class_signal, *class_file, *class_pgsql, *class_dir,
- *class_gd;
+ *class_gd, *class_fs;
} js_context_t;
/*
(cctx->class_dir = js_InitDirClass(cctx->ctx, cctx->global))
== NULL ||
(cctx->class_gd = js_InitGDClass(cctx->ctx, cctx->global))
- == NULL) {
+ == NULL ||
+ (cctx->class_fs = js_InitFSClass(cctx->ctx, cctx->global))
+ == NULL) {
/* An error, free any partially allocated resources */
if (cctx != NULL)
js_context_destroy(cctx);