aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 @@
1OBJS= hash.o inout.o lex_yy.o opcode.o table.o y_tab.o lua.o iolib.o mathlib.o strlib.o
2
3CFLAGS= -O2 -I.
4
5T= lua
6
7all: $T
8
9$T: $(OBJS)
10 $(CC) -o $@ $(OBJS) -lm
11
12A=--------------------------------------------------------------------------
13test: $T
14 @echo "$A"
15 ./$T sort.lua main
16 @echo "$A"
17 ./$T globals.lua | sort | column
18 @echo "$A"
19 ./$T array.lua
20 @echo "$A"
21 ./$T save.lua
22 @echo "$A"
23 ./$T test.lua retorno_multiplo norma
24
25clean:
26 rm -f $T $(OBJS) core core.*
27
28diff:
29 diff . fixed | grep -v ^Only