Browse Source

new module "func", for GC of functions,
and new "defines" for configuration setup.

Roberto Ierusalimschy 30 years ago
parent
commit
3c75b75516
1 changed files with 25 additions and 15 deletions
  1. 25 15
      makefile

+ 25 - 15
makefile

@@ -1,7 +1,12 @@
-# $Id: makefile,v 1.12 1995/02/02 19:02:03 roberto Exp $
+# $Id: makefile,v 1.13 1995/10/04 19:19:46 roberto Exp roberto $
+
+#configuration
+
+# define (undefine) POPEN if your system (does not) support piped I/O
+CONFIG = -DPOPEN
 # Compilation parameters
 # Compilation parameters
 CC = gcc
 CC = gcc
-CFLAGS = -I/usr/5include -Wall -Wmissing-prototypes -Wshadow -ansi -O2
+CFLAGS = $(CONFIG) -I/usr/5include -Wall -Wmissing-prototypes -Wshadow -ansi -O2
 
 
 #CC = acc
 #CC = acc
 #CFLAGS = -fast -I/usr/5include
 #CFLAGS = -fast -I/usr/5include
@@ -19,7 +24,8 @@ LUAMOD =	\
 	inout	\
 	inout	\
 	tree    \
 	tree    \
 	fallback\
 	fallback\
-	mem
+	mem	\
+	func
 
 
 LIBMOD = 	\
 LIBMOD = 	\
 	iolib	\
 	iolib	\
@@ -61,18 +67,22 @@ clear	:
 	co $@
 	co $@
 
 
 
 
-fallback.o : fallback.c mem.h fallback.h opcode.h lua.h types.h tree.h inout.h 
-hash.o : hash.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h 
-inout.o : inout.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h 
-iolib.o : iolib.c mem.h lua.h lualib.h 
-lex.o : lex.c tree.h types.h table.h opcode.h lua.h inout.h parser.h ugly.h 
+fallback.o : fallback.c mem.h fallback.h opcode.h lua.h types.h tree.h func.h 
+func.o : func.c table.h tree.h types.h opcode.h lua.h func.h mem.h 
+hash.o : hash.c mem.h opcode.h lua.h types.h tree.h func.h hash.h table.h 
+inout.o : inout.c mem.h opcode.h lua.h types.h tree.h func.h hash.h inout.h \
+  table.h 
+iolib.o : iolib.c lua.h lualib.h 
+lex.o : lex.c mem.h tree.h types.h table.h opcode.h lua.h func.h inout.h parser.h \
+  ugly.h 
 lua.o : lua.c lua.h lualib.h 
 lua.o : lua.c lua.h lualib.h 
 mathlib.o : mathlib.c lualib.h lua.h 
 mathlib.o : mathlib.c lualib.h lua.h 
 mem.o : mem.c mem.h lua.h 
 mem.o : mem.c mem.h lua.h 
-opcode.o : opcode.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h \
-  fallback.h 
-strlib.o : strlib.c mem.h lua.h lualib.h 
-table.o : table.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h \
-  fallback.h 
-tree.o : tree.c mem.h lua.h tree.h types.h table.h opcode.h 
-parser.o : parser.c mem.h opcode.h lua.h types.h tree.h hash.h inout.h table.h 
+opcode.o : opcode.c mem.h opcode.h lua.h types.h tree.h func.h hash.h inout.h \
+  table.h fallback.h 
+parser.o : parser.c mem.h opcode.h lua.h types.h tree.h func.h hash.h inout.h \
+  table.h 
+strlib.o : strlib.c lua.h lualib.h 
+table.o : table.c mem.h opcode.h lua.h types.h tree.h func.h hash.h table.h \
+  inout.h fallback.h 
+tree.o : tree.c mem.h lua.h tree.h types.h table.h opcode.h func.h