summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile34
1 files changed, 8 insertions, 26 deletions
diff --git a/Makefile b/Makefile
index 8ed18bb5..10640e0d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,29 +1,11 @@
-OBJS= hash.o inout.o lex_yy.o opcode.o table.o y_tab.o lua.o iolib.o mathlib.o strlib.o
+# makefile for lua hierarchy
-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
+all:
+ (cd src; make)
+ (cd clients/lib; make)
+ (cd clients/lua; make)
clean:
- rm -f $T $(OBJS) core core.*
-
-diff:
- diff . fixed | grep -v ^Only
+ (cd src; make clean)
+ (cd clients/lib; make clean)
+ (cd clients/lua; make clean)