diff options
| author | Diego Nehab <diego.nehab@gmail.com> | 2012-05-08 11:51:25 -0700 |
|---|---|---|
| committer | Diego Nehab <diego.nehab@gmail.com> | 2012-05-08 11:51:25 -0700 |
| commit | 1bb586d655ebb1d39ad29d45ec520f2ccfbf8e86 (patch) | |
| tree | d583e64eaff558bc601179ea4127d2aa720cf312 /makefile | |
| parent | ee7c53c3e58350c51e5c622e1b9ff8acf02c0e59 (diff) | |
| parent | c291383ce26d975648ac110bf7c8ba04c65de116 (diff) | |
| download | luasocket-1bb586d655ebb1d39ad29d45ec520f2ccfbf8e86.tar.gz luasocket-1bb586d655ebb1d39ad29d45ec520f2ccfbf8e86.tar.bz2 luasocket-1bb586d655ebb1d39ad29d45ec520f2ccfbf8e86.zip | |
Merge pull request #7 from sam-github/fix-makefiles
Rework makefiles to simplify setting and choosing build options.
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 20 |
1 files changed, 15 insertions, 5 deletions
| @@ -1,13 +1,23 @@ | |||
| 1 | PLAT?= macosx | 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 both lua5.1 and lua5.2 socket support | ||
| 9 | # print print the build settings | ||
| 10 | |||
| 11 | PLAT?= linux | ||
| 2 | PLATS= macosx linux win32 | 12 | PLATS= macosx linux win32 |
| 3 | 13 | ||
| 4 | #------ | ||
| 5 | # Hopefully no need to change anything below this line | ||
| 6 | # | ||
| 7 | all: $(PLAT) | 14 | all: $(PLAT) |
| 8 | 15 | ||
| 9 | $(PLATS) none install install-unix local clean: | 16 | $(PLATS) none install install-unix local clean: |
| 10 | @cd src; $(MAKE) $@ | 17 | $(MAKE) -C src $@ |
| 18 | |||
| 19 | print: | ||
| 20 | $(MAKE) -C src $@ | ||
| 11 | 21 | ||
| 12 | test: | 22 | test: |
| 13 | lua test/hello.lua | 23 | lua test/hello.lua |
