2009-01-24 00:41:01 +00:00
|
|
|
# Copyright (C) 2001-2009 by David Capello -*-Makefile-*-
|
2007-09-18 23:57:02 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2008-04-14 03:05:19 +00:00
|
|
|
ifdef DEBUGMODE
|
2008-03-28 02:55:15 +00:00
|
|
|
CFLAGS = `allegro-config --cflags debug`
|
|
|
|
LFLAGS = `allegro-config --libs debug`
|
2008-04-14 03:05:19 +00:00
|
|
|
else
|
2008-03-28 02:55:15 +00:00
|
|
|
CFLAGS = `allegro-config --cflags`
|
2007-09-18 23:57:02 +00:00
|
|
|
LFLAGS = `allegro-config --libs`
|
2008-04-14 03:05:19 +00:00
|
|
|
endif
|
2007-09-18 23:57:02 +00:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# GCC stuff
|
|
|
|
|
|
|
|
CC = gcc
|
2008-09-30 21:01:54 +00:00
|
|
|
CPP = g++
|
2007-09-18 23:57:02 +00:00
|
|
|
OBJ = .o
|
|
|
|
EXE =
|
2008-09-30 21:01:54 +00:00
|
|
|
LIB_EXT = .a
|
2007-09-18 23:57:02 +00:00
|
|
|
OBJ_DIR = obj/unix
|
2008-09-30 21:01:54 +00:00
|
|
|
SUBMAKEFILE = makefile.lnx
|
2007-09-18 23:57:02 +00:00
|
|
|
|
|
|
|
include makefile.lst
|
|
|
|
include makefile.gcc
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# General rules
|
|
|
|
|
|
|
|
.PHONY = default all clean distclean install uninstall
|
|
|
|
|
|
|
|
default: all
|
|
|
|
|
|
|
|
all: $(ASE)
|
|
|
|
|
|
|
|
clean:
|
2007-11-28 14:19:36 +00:00
|
|
|
-rm -f $(ALL_OBJS) $(THIRD_PARTY_LIBS)
|
2007-09-18 23:57:02 +00:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
-rm -f $(ASE)
|
|
|
|
|
|
|
|
install:
|
2008-04-14 03:05:19 +00:00
|
|
|
cp aseprite $(DEFAULT_PREFIX)/bin
|
2007-09-18 23:57:02 +00:00
|
|
|
cp -r data $(DEFAULT_PREFIX)/share/ase
|
2007-09-30 15:32:21 +00:00
|
|
|
cp AUTHORS.txt $(DEFAULT_PREFIX)/share/ase
|
2007-09-18 23:57:02 +00:00
|
|
|
|
|
|
|
uninstall:
|
2008-04-14 03:05:19 +00:00
|
|
|
-rm -vf $(DEFAULT_PREFIX)/bin/aseprite
|
2007-09-18 23:57:02 +00:00
|
|
|
-rm -rvf $(DEFAULT_PREFIX)/share/ase
|
|
|
|
|
|
|
|
-include makefile.dep
|