diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 29 |
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 @@ | |||
1 | OBJS= hash.o inout.o lex_yy.o opcode.o table.o y_tab.o lua.o iolib.o mathlib.o strlib.o | ||
2 | |||
3 | CFLAGS= -O2 -I. | ||
4 | |||
5 | T= lua | ||
6 | |||
7 | all: $T | ||
8 | |||
9 | $T: $(OBJS) | ||
10 | $(CC) -o $@ $(OBJS) -lm | ||
11 | |||
12 | A=-------------------------------------------------------------------------- | ||
13 | test: $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 | |||
25 | clean: | ||
26 | rm -f $T $(OBJS) core core.* | ||
27 | |||
28 | diff: | ||
29 | diff . fixed | grep -v ^Only | ||