summaryrefslogtreecommitdiff
path: root/etc/Makefile
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2005-09-09 12:00:00 +0000
committerrepogen <>2005-09-09 12:00:00 +0000
commitbd80c4ee9b6d9464cf9f3ff4ee41890d8b3ca9e6 (patch)
treee1d7c1b341ccb9a3a1fb044ac6e67b5a5e0259b7 /etc/Makefile
parentbf6b5550cdfbc0c4a3a4577776ad76628d80718e (diff)
downloadlua-github-5.1-alpha.tar.gz
Lua 5.1-alpha5.1-alpha
Diffstat (limited to 'etc/Makefile')
-rw-r--r--etc/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/etc/Makefile b/etc/Makefile
index fc3d1468..2dfc937c 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -14,13 +14,12 @@ MYLDFLAGS= -Wl,-E
MYLIBS= -lm -ldl
RM= rm -f
-ALL= min noparser.o 1
-
all:
- @echo 'choose a target:' $(ALL)
+ @echo 'choose a target: min noparser one clean'
min: min.c
- $(CC) $(CFLAGS) -o $@ $@.c -L$(LIB) -llua $(MYLIBS)
+ $(CC) $(CFLAGS) $@.c -L$(LIB) -llua $(MYLIBS)
+ echo 'print"Hello there!"' | ./a.out
noparser: noparser.o
$(CC) noparser.o $(SRC)/lua.o -L$(LIB) -llua $(MYLIBS)
@@ -28,9 +27,9 @@ noparser: noparser.o
-./a.out luac.out
-./a.out -e'a=1'
-1:
+one:
$(CC) $(CFLAGS) all.c $(MYLIBS)
./a.out $(TST)/hello.lua
clean:
- $(RM) $(ALL) a.out core core.* *.o luac.out
+ $(RM) noparser.o a.out core core.* *.o luac.out