1 CFLAGS
=-O3
-march
=core2
2 CXXFLAGS
=-O3
-march
=core2
10 $(MAKE
) CXXFLAGS
="-g -ggdb" CFLAGS
="-g -ggdb"
13 wget http
://www.lua.org
/ftp
/$(LUA
).
tar.gz
15 $(LUA
)/src
/liblua.a
: $(LUA
).
tar.gz
16 tar -xvzf
$(LUA
).
tar.gz
17 make
-C
$(LUA
)/src liblua.a MYCFLAGS
="-DLUA_USE_LINUX $(CFLAGS)"
19 main.o
: Makefile .main.dep
$(LUA
)/src
/liblua.a
21 analyze.o
: Makefile .analyze.dep
23 .analyze.dep
: analyze.
cpp
24 $(CXX
) -MM analyze.
cpp > .analyze.dep
26 $(CXX
) -MM main.
cpp > .main.dep
28 analyze
: .analyze.dep analyze.o
29 $(CXX
) $(LDFLAGS
) -I
$(LUA
)/src analyze.o
$(LUA
)/src
/liblua.a
-o analyze
30 main
: .main.dep main.o
31 $(CXX
) $(LDFLAGS
) -I
$(LUA
)/src main.o
$(LUA
)/src
/liblua.a
-o main
37 .PHONY
: clean default
all