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

40 lines
647 B
Makefile
Raw Normal View History

2017-09-25 03:27:22 +00:00
OS := $(shell uname -s)
2017-10-18 07:18:28 +00:00
ifeq ($(OS), DragonFly)
MAKEFILE=Makefile.freebsd
endif
2017-09-25 03:27:22 +00:00
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
2017-10-19 21:27:58 +00:00
ifeq ($(OS), SunOS)
MAKEFILE=Makefile.sunos
endif
2018-01-19 07:13:06 +00:00
ifeq ($(OS), OpenBSD)
MAKEFILE=Makefile.openbsd
endif
2017-09-25 03:27:22 +00:00
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