summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..8ed18bb5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+OBJS= hash.o inout.o lex_yy.o opcode.o table.o y_tab.o lua.o iolib.o mathlib.o strlib.o
+
+CFLAGS= -O2 -I.
+
+T= lua
+
+all: $T
+
+$T: $(OBJS)
+ $(CC) -o $@ $(OBJS) -lm
+
+A=--------------------------------------------------------------------------
+test: $T
+ @echo "$A"
+ ./$T sort.lua main
+ @echo "$A"
+ ./$T globals.lua | sort | column
+ @echo "$A"
+ ./$T array.lua
+ @echo "$A"
+ ./$T save.lua
+ @echo "$A"
+ ./$T test.lua retorno_multiplo norma
+
+clean:
+ rm -f $T $(OBJS) core core.*
+
+diff:
+ diff . fixed | grep -v ^Only