aseprite/makefile.linux

65 lines
1.3 KiB
Plaintext
Raw Normal View History

# 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
ifdef DEBUGMODE
CFLAGS = `allegro-config --cflags debug`
LFLAGS = `allegro-config --libs debug`
else
CFLAGS = `allegro-config --cflags`
2007-09-18 23:57:02 +00:00
LFLAGS = `allegro-config --libs`
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
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:
-rm -f $(ALL_OBJS) $(THIRD_PARTY_LIBS)
2007-09-18 23:57:02 +00:00
distclean: clean
-rm -f $(ASE)
install:
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:
-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