beebasm
changeset 33:58954bd1a2d9
Platform detect for macosx added
| author | Martin White |
|---|---|
| date | Fri Mar 04 02:01:51 2011 +0000 |
| parents | ceed0131ba5d |
| children | 5aca9d5e4d02 |
| files | src/Makefile.inc |
| diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line diff
1.1 --- a/src/Makefile.inc Tue Mar 01 20:05:48 2011 +0100 1.2 +++ b/src/Makefile.inc Fri Mar 04 02:01:51 2011 +0000 1.3 @@ -66,6 +66,7 @@ 1.4 PLATFORM_LIST := mingw-gcc3 1.5 PLATFORM_LIST += mingw-gcc4 1.6 PLATFORM_LIST += linux 1.7 +PLATFORM_LIST += macosx 1.8 1.9 1.10 # Try to determine the build platform if it wasn't explicitly specified on the command line 1.11 @@ -81,6 +82,12 @@ 1.12 PLATFORM := linux 1.13 endif 1.14 1.15 +ifneq (,$(findstring darwin,$(OSTYPE))) 1.16 +PLATFORM := macosx 1.17 +else ifeq ($(shell uname -s),Darwin) 1.18 +PLATFORM := macosx 1.19 +endif 1.20 + 1.21 ifeq ($(OS),Windows_NT) 1.22 ifeq ($(word 1,$(subst ., ,$(shell $(CC) -dumpversion))),4) 1.23 PLATFORM := mingw-gcc4 1.24 @@ -132,7 +139,6 @@ 1.25 TARGET := $(addsuffix .exe,$(TARGET)) 1.26 endif 1.27 1.28 - 1.29 # Declare default number of CPUs 1.30 1.31 CPUS ?= 1 1.32 @@ -180,14 +186,11 @@ 1.33 objs: folders 1.34 $(VB)$(MAKE) $(VB_MAKE) -j $(CPUS) $(OBJS) INCLUDE_DEPS=1 1.35 1.36 - 1.37 deps: folders 1.38 $(VB)$(MAKE) $(VB_MAKE) -j $(CPUS) $(DEPS) INCLUDE_DEPS=1 1.39 1.40 - 1.41 code: deps objs $(TARGET) 1.42 1.43 - 1.44 run: 1.45 $(ECHO) Running ... $(TARGET)\n 1.46 $(VB)$(TARGET) $(PARAMS)
