Debian Codegraph @

makefile

raw
1 # luasocket makefile
2 #
3 # see src/makefile for description of how to customize the build
4 #
5 # Targets:
6 # install install system independent support
7 # install-unix also install unix-only support
8 # install-both install for lua51 lua52 lua53
9 # install-both-unix also install unix-only
10 # print print the build settings
11
12 PLAT?= linux
13 PLATS= macosx linux win32 win64 mingw freebsd solaris
14
15 all: $(PLAT)
16
17 $(PLATS) none install install-unix local clean:
18 $(MAKE) -C src $@
19
20 print:
21 $(MAKE) -C src $@
22
23 test:
24 lua test/hello.lua
25
26 install-both:
27 $(MAKE) clean
28 @cd src; $(MAKE) $(PLAT) LUAV=5.1
29 @cd src; $(MAKE) install LUAV=5.1
30 $(MAKE) clean
31 @cd src; $(MAKE) $(PLAT) LUAV=5.2
32 @cd src; $(MAKE) install LUAV=5.2
33 $(MAKE) clean
34 @cd src; $(MAKE) $(PLAT) LUAV=5.3
35 @cd src; $(MAKE) install LUAV=5.3
36 $(MAKE) clean
37 @cd src; $(MAKE) $(PLAT) LUAV=5.4
38 @cd src; $(MAKE) install LUAV=5.4
39
40 install-both-unix:
41 $(MAKE) clean
42 @cd src; $(MAKE) $(PLAT) LUAV=5.1
43 @cd src; $(MAKE) install-unix LUAV=5.1
44 $(MAKE) clean
45 @cd src; $(MAKE) $(PLAT) LUAV=5.2
46 @cd src; $(MAKE) install-unix LUAV=5.2
47 $(MAKE) clean
48 @cd src; $(MAKE) $(PLAT) LUAV=5.3
49 @cd src; $(MAKE) install-unix LUAV=5.3
50 $(MAKE) clean
51 @cd src; $(MAKE) $(PLAT) LUAV=5.4
52 @cd src; $(MAKE) install-unix LUAV=5.4
53
54 .PHONY: test
55