2007-09-18 23:57:02 +00:00
|
|
|
# Copyright (C) 2001-2005, 2007 by David A. 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 MinGW
|
|
|
|
|
|
|
|
CFLAGS =
|
2007-11-15 03:49:58 +00:00
|
|
|
LFLAGS = -mwindows
|
2007-09-26 19:34:06 +00:00
|
|
|
ifdef DEBUGMODE
|
|
|
|
LFLAGS_LAST = -lalld
|
|
|
|
else
|
|
|
|
LFLAGS_LAST = -lalleg
|
|
|
|
endif
|
2007-09-18 23:57:02 +00:00
|
|
|
WITHICON = 1
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# GCC stuff
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
OBJ = .o
|
|
|
|
LIB = .a
|
|
|
|
EXE = .exe
|
|
|
|
SUBMAKEFILE = makefile.mgw
|
|
|
|
OBJ_DIR = obj/mingw32
|
|
|
|
|
|
|
|
ifndef CROSSCOMPILE
|
|
|
|
DLLWRAP = dllwrap
|
|
|
|
WINDRES = windres
|
|
|
|
else
|
|
|
|
DLLWRAP = $(XPREFIX)dllwrap
|
|
|
|
WINDRES = $(XPREFIX)windres
|
|
|
|
endif
|
|
|
|
|
|
|
|
include makefile.lst
|
|
|
|
include makefile.gcc
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# General rules
|
|
|
|
|
|
|
|
.PHONY = default all clean distclean
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
-include makefile.dep
|