2009-01-24 00:41:01 +00:00
|
|
|
# Copyright (C) 2001-2009 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 MinGW
|
|
|
|
|
2008-02-04 02:37:26 +00:00
|
|
|
# CFLAGS = -D_WIN32_WINNT=0x0500
|
2007-09-18 23:57:02 +00:00
|
|
|
CFLAGS =
|
2008-02-04 02:37:26 +00:00
|
|
|
LFLAGS = -mwindows -lshlwapi
|
2007-09-26 19:34:06 +00:00
|
|
|
ifdef DEBUGMODE
|
2009-05-31 20:15:38 +00:00
|
|
|
LFLAGS_LAST = -lalld -lpsapi
|
2007-09-26 19:34:06 +00:00
|
|
|
else
|
|
|
|
LFLAGS_LAST = -lalleg
|
|
|
|
endif
|
2008-02-10 19:06:03 +00:00
|
|
|
|
2007-09-18 23:57:02 +00:00
|
|
|
WITHICON = 1
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# 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 = .exe
|
2008-09-30 21:01:54 +00:00
|
|
|
LIB_EXT = .a
|
2007-09-18 23:57:02 +00:00
|
|
|
OBJ_DIR = obj/mingw32
|
2008-09-30 21:01:54 +00:00
|
|
|
SUBMAKEFILE = makefile.mgw
|
2007-09-18 23:57:02 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2008-03-15 01:54:45 +00:00
|
|
|
all: $(ASE)
|
2007-09-18 23:57:02 +00:00
|
|
|
|
|
|
|
clean:
|
2008-05-06 15:22:57 +00:00
|
|
|
-rm -f $(ALL_OBJS) $(THIRD_PARTY_LIBS) $(OBJ_DIR)/icon.res
|
2007-09-18 23:57:02 +00:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
-rm -f $(ASE)
|
|
|
|
|
|
|
|
-include makefile.dep
|