40 lines
647 B
Makefile
40 lines
647 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
|
|
ifeq ($(OS), OpenBSD)
|
|
MAKEFILE=Makefile.openbsd
|
|
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
|