aseprite/makefile.lnx

64 lines
1.2 KiB
Plaintext
Raw Normal View History

# Copyright (C) 2001-2008 by David A. 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
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:
-rm -f $(ALL_OBJS) $(THIRD_PARTY_LIBS)
2007-09-18 23:57:02 +00:00
distclean: clean
-rm -f $(ASE)
install:
cp aseprite $(DEFAULT_PREFIX)/bin
2007-09-18 23:57:02 +00:00
cp -r data $(DEFAULT_PREFIX)/share/ase
cp AUTHORS.txt $(DEFAULT_PREFIX)/share/ase
2007-09-18 23:57:02 +00:00
uninstall:
-rm -vf $(DEFAULT_PREFIX)/bin/aseprite
2007-09-18 23:57:02 +00:00
-rm -rvf $(DEFAULT_PREFIX)/share/ase
-include makefile.dep