mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 03:16:58 +00:00
Added Makefile for Mac OS X.
This commit is contained in:
parent
d3fd921f1a
commit
c25b9191f4
4
fix.sh
4
fix.sh
@ -10,7 +10,7 @@ readln()
|
||||
######################################################################
|
||||
# platform
|
||||
|
||||
readln "What platform (linux/mingw)?" "linux"
|
||||
readln "What platform (linux/macosx/mingw)?" "linux"
|
||||
platform=$ans
|
||||
|
||||
######################################################################
|
||||
@ -46,6 +46,7 @@ fi
|
||||
|
||||
case "$platform" in
|
||||
"linux" ) platform_name="Linux" ;;
|
||||
"macosx" ) platform_name="Mac OS X" ;;
|
||||
"mingw" ) platform_name="Windows (Mingw32)" ;;
|
||||
"*" ) exit ;;
|
||||
esac
|
||||
@ -76,6 +77,7 @@ if [ X"$ans" != X"y" ] ; then exit ; fi
|
||||
|
||||
case "$platform" in
|
||||
"linux" ) makefile_name="makefile.linux" ;;
|
||||
"macosx" ) makefile_name="makefile.macosx" ;;
|
||||
"mingw" ) makefile_name="makefile.mingw" ;;
|
||||
"*" ) exit ;;
|
||||
esac
|
||||
|
64
makefile.macosx
Normal file
64
makefile.macosx
Normal file
@ -0,0 +1,64 @@
|
||||
# Copyright (C) 2001-2010 by David Capello -*-Makefile-*-
|
||||
|
||||
ifndef CONFIGURED
|
||||
include makefile.cfg
|
||||
endif
|
||||
|
||||
.PHONY = cfgtest
|
||||
|
||||
ifndef CONFIGURED
|
||||
cfgtest:
|
||||
@echo You must configure ASE: edit \"makefile.cfg\" or run \"fix.sh\" script
|
||||
endif
|
||||
|
||||
######################################################################
|
||||
# Flags for GCC in GNU/Linux system
|
||||
|
||||
ifdef DEBUGMODE
|
||||
CFLAGS = -arch i386 `allegro-config --cflags debug`
|
||||
LFLAGS = -arch i386 `allegro-config --libs debug`
|
||||
else
|
||||
CFLAGS = -arch i386 `allegro-config --cflags`
|
||||
LFLAGS = -arch i386 `allegro-config --libs`
|
||||
endif
|
||||
|
||||
######################################################################
|
||||
# GCC stuff
|
||||
|
||||
CC = gcc
|
||||
CPP = g++
|
||||
OBJ = .o
|
||||
EXE =
|
||||
LIB_EXT = .a
|
||||
OBJ_DIR = obj/unix
|
||||
SUBMAKEFILE = makefile.macosx
|
||||
|
||||
include makefile.lst
|
||||
include makefile.gcc
|
||||
|
||||
######################################################################
|
||||
# General rules
|
||||
|
||||
.PHONY = default all clean distclean install uninstall
|
||||
|
||||
default: all
|
||||
|
||||
all: $(ASE)
|
||||
|
||||
clean:
|
||||
-rm -f $(ALL_OBJS) $(THIRD_PARTY_LIBS)
|
||||
|
||||
distclean: clean
|
||||
-rm -f $(ASE)
|
||||
|
||||
install:
|
||||
cp aseprite $(DEFAULT_PREFIX)/bin
|
||||
cp -r data $(DEFAULT_PREFIX)/share/ase
|
||||
cp -r docs $(DEFAULT_PREFIX)/share/ase
|
||||
cp README.html $(DEFAULT_PREFIX)/share/ase
|
||||
|
||||
uninstall:
|
||||
-rm -vf $(DEFAULT_PREFIX)/bin/aseprite
|
||||
-rm -rvf $(DEFAULT_PREFIX)/share/ase
|
||||
|
||||
-include makefile.dep
|
Loading…
Reference in New Issue
Block a user