2010-06-24 23:49:24 +00:00
|
|
|
# Copyright (C) 2001-2010 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
|
2010-07-06 01:34:51 +00:00
|
|
|
SUBMAKEFILE = makefile.linux
|
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:
|
2010-07-23 02:14:02 +00:00
|
|
|
cp aseprite $(DESTDIR)$(DEFAULT_PREFIX)/bin
|
|
|
|
cp -r data $(DESTDIR)$(DEFAULT_PREFIX)/share/ase
|
|
|
|
cp -r docs $(DESTDIR)$(DEFAULT_PREFIX)/share/ase
|
|
|
|
cp README.html $(DESTDIR)$(DEFAULT_PREFIX)/share/ase
|
2007-09-18 23:57:02 +00:00
|
|
|
|
|
|
|
uninstall:
|
2010-07-23 02:14:02 +00:00
|
|
|
-rm -vf $(DESTDIR)$(DEFAULT_PREFIX)/bin/aseprite
|
|
|
|
-rm -rvf $(DESTDIR)$(DEFAULT_PREFIX)/share/ase
|
2007-09-18 23:57:02 +00:00
|
|
|
|
|
|
|
-include makefile.dep
|