Add support for MacOSX

This commit is contained in:
2020-03-06 03:27:15 +01:00
parent 17c892a234
commit c62ab4019f
5 changed files with 465 additions and 4 deletions

16
Makefile.macosx Normal file
View File

@@ -0,0 +1,16 @@
CC := gcc
AR := ar
LAUNCHER :=
RM := rm -rf
MKDIR := mkdir
ECHO := echo
LIBS := -framework Cocoa -lm -framework OpenGL -framework SDL macosx/SDLMain.m
CFLAGS := -Wall -g -DMACOSX -ObjC -Dmain=SDL_main -I/usr/include/ -I/usr/include/SDL/ -I/usr/X11R6/include/
LDFLAGS :=
RES_GAMELIB := libgame.a
RES_GAME := game
BUILDDIR := build-$(shell gcc -v 2>&1 | grep "Target:" | cut -d ' ' -f 2)
include Makefile.common