Add suport for macosx

This commit is contained in:
2021-04-17 20:18:00 +02:00
committed by Valeriano A.R
parent d848bc1a8b
commit 61368825a4
2 changed files with 400 additions and 0 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