2007-09-30 15:32:21 +00:00
|
|
|
# Copyright (C) 2001-2005, 2007 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
|
|
|
|
|
|
|
|
CFLAGS =
|
|
|
|
LFLAGS = `allegro-config --libs`
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# GCC stuff
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
OBJ = .o
|
|
|
|
LIB = .a
|
|
|
|
EXE =
|
|
|
|
SUBMAKEFILE = makefile.lnx
|
|
|
|
OBJ_DIR = obj/unix
|
|
|
|
|
|
|
|
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:
|
|
|
|
cp ase $(DEFAULT_PREFIX)/bin
|
|
|
|
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:
|
|
|
|
-rm -vf $(DEFAULT_PREFIX)/bin/ase
|
|
|
|
-rm -rvf $(DEFAULT_PREFIX)/share/ase
|
|
|
|
|
|
|
|
-include makefile.dep
|