mame/3rdparty/genie/makefile
2015-03-17 11:08:12 +01:00

52 lines
1.1 KiB
Makefile

#
# Copyright 2011-2014 Branimir Karadzic. All rights reserved.
# License: http://www.opensource.org/licenses/BSD-2-Clause
#
UNAME := $(shell uname)
ifeq ($(UNAME),$(filter $(UNAME),Linux Darwin))
ifeq ($(UNAME),$(filter $(UNAME),Darwin))
OS=darwin
else
OS=linux
endif
else
OS=windows
endif
.PHONY: release
GENIE=bin/$(OS)/genie
SILENT?=@
$(GENIE):
$(SILENT) make -C build/gmake.$(OS)
all: $(GENIE)
clean:
$(SILENT) make -C build/gmake.$(OS) clean
$(SILENT) -rm -rf bin
rebuild:
$(SILENT) make -C build/gmake.$(OS) clean all
release-windows release-darwin: $(GENIE)
$(GENIE) release
$(SILENT) make -C build/gmake.$(OS) clean all
$(SILENT) git checkout src/host/version.h
release-linux: $(GENIE)
$(SILENT) $(GENIE) release
$(SILENT) make -C build/gmake.darwin clean all CC=x86_64-apple-darwin13-clang++
$(SILENT) make -C build/gmake.linux clean all
$(SILENT) make -C build/gmake.windows clean all CC=i686-w64-mingw32-gcc
$(SILENT) git checkout src/host/version.h
release: release-$(OS)
dist: release
cp bin/linux/genie ../bx/tools/bin/linux/
cp bin/windows/genie.exe ../bx/tools/bin/windows/
cp bin/darwin/genie ../bx/tools/bin/darwin/