This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
magicka/Makefile
2017-10-20 07:27:58 +10:00

36 lines
590 B
Makefile

OS := $(shell uname -s)
ifeq ($(OS), DragonFly)
MAKEFILE=Makefile.freebsd
endif
ifeq ($(OS), FreeBSD)
MAKEFILE=Makefile.freebsd
endif
ifeq ($(OS), NetBSD)
MAKEFILE=Makefile.netbsd
endif
ifeq ($(OS), Linux)
MAKEFILE=Makefile.linux
endif
ifeq ($(OS), Darwin)
MAKEFILE=Makefile.osx
endif
ifeq ($(OS), SunOS)
MAKEFILE=Makefile.sunos
endif
all: magicka
.PHONY: magicka www clean cleanwww
magicka:
cd src && $(MAKE) -f $(MAKEFILE)
www:
cd src && $(MAKE) -f $(MAKEFILE).WWW
clean:
cd src && $(MAKE) -f $(MAKEFILE) clean
cleanwww:
cd src && $(MAKE) -f $(MAKEFILE).WWW clean