mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 12:20:58 +00:00
8e498470d5
Added the feature #2419098 (David Campo idea).
64 lines
1.2 KiB
Makefile
64 lines
1.2 KiB
Makefile
# Copyright (C) 2001-2009 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 = `allegro-config --cflags debug`
|
|
LFLAGS = `allegro-config --libs debug`
|
|
else
|
|
CFLAGS = `allegro-config --cflags`
|
|
LFLAGS = `allegro-config --libs`
|
|
endif
|
|
|
|
######################################################################
|
|
# GCC stuff
|
|
|
|
CC = gcc
|
|
CPP = g++
|
|
OBJ = .o
|
|
EXE =
|
|
LIB_EXT = .a
|
|
OBJ_DIR = obj/unix
|
|
SUBMAKEFILE = makefile.lnx
|
|
|
|
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 AUTHORS.txt $(DEFAULT_PREFIX)/share/ase
|
|
|
|
uninstall:
|
|
-rm -vf $(DEFAULT_PREFIX)/bin/aseprite
|
|
-rm -rvf $(DEFAULT_PREFIX)/share/ase
|
|
|
|
-include makefile.dep
|