diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4d83c2a --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | # busted_time makefile | ||
| 2 | # | ||
| 3 | # see csrc/makefile for description of how to customize the build | ||
| 4 | # | ||
| 5 | # Targets: | ||
| 6 | # install install system independent support | ||
| 7 | # install-all install for lua51 lua52 lua53 | ||
| 8 | # print print the build settings | ||
| 9 | |||
| 10 | PLAT?= linux | ||
| 11 | PLATS= macosx linux win32 mingw freebsd | ||
| 12 | |||
| 13 | all: $(PLAT) | ||
| 14 | |||
| 15 | $(PLATS) none install local clean: | ||
| 16 | $(MAKE) -C src $@ | ||
| 17 | |||
| 18 | print: | ||
| 19 | $(MAKE) -C src $@ | ||
| 20 | |||
| 21 | install-all: | ||
| 22 | $(MAKE) clean | ||
| 23 | @cd src && $(MAKE) $(PLAT) LUA_VERSION=5.1 | ||
| 24 | @cd src && $(MAKE) install LUA_VERSION=5.1 | ||
| 25 | $(MAKE) clean | ||
| 26 | @cd src && $(MAKE) $(PLAT) LUA_VERSION=5.2 | ||
| 27 | @cd src && $(MAKE) install LUA_VERSION=5.2 | ||
| 28 | $(MAKE) clean | ||
| 29 | @cd src && $(MAKE) $(PLAT) LUA_VERSION=5.3 | ||
| 30 | @cd src && $(MAKE) install LUA_VERSION=5.3 | ||
| 31 | |||
| 32 | .PHONY: test | ||
