mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-14 22:20:58 +00:00
721b9a7d01
Still work to be done, but this at least matches the PowerPC Linux status now. MacOS-specific directory (and XCode project) is gone...this now uses SDL, OpenAL, and the Unix Makefiles. --ryan.
44 lines
659 B
Makefile
44 lines
659 B
Makefile
# yeah, couldn't do more simple really
|
|
|
|
PLATFORM=$(shell uname|sed -e s/_.*//|tr A-Z a-z)
|
|
ifeq ($(PLATFORM),mingw32)
|
|
BINEXT=.exe
|
|
else
|
|
BINEXT=
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),SunOS)
|
|
INSTALL=ginstall
|
|
else
|
|
INSTALL=install
|
|
endif
|
|
|
|
CC=gcc
|
|
Q3ASM_CFLAGS=-O2 -Wall -Werror -fno-strict-aliasing
|
|
|
|
ifeq ($(PLATFORM),darwin)
|
|
LCC_CFLAGS += -DMACOS_X=1
|
|
endif
|
|
|
|
ifndef USE_CCACHE
|
|
USE_CCACHE=0
|
|
endif
|
|
|
|
ifeq ($(USE_CCACHE),1)
|
|
CC := ccache $(CC)
|
|
CXX := ccache $(CXX)
|
|
endif
|
|
|
|
default: q3asm
|
|
|
|
q3asm: q3asm.c cmdlib.c
|
|
$(CC) $(Q3ASM_CFLAGS) -o $@ $^
|
|
|
|
clean:
|
|
rm -f q3asm *~ *.o
|
|
|
|
install: default
|
|
$(INSTALL) -s -m 0755 q3asm$(BINEXT) ../
|
|
|
|
uninstall:
|
|
rm -f ../q3asm$(BINEXT)
|