Revision 1 (by kittycat, 2006/05/06 05:08:46) Initial import
# Settings to compile APEG for Windows on Unix using XMinGW.
PLAT = "Win32"
CFLAGS ?= "-W -Wall -O3 -ffast-math -funroll-loops -fomit-frame-pointer"
ARCH_TYPE ?= "pentium"
DEBUGMODE ?= "0"
STATICLINK ?= "0"
EXE_EXT = ".exe"

# Modify these only if you need to! MINGDIR will be the default install path
CC = "i386-mingw32msvc-gcc"
LD = "i386-mingw32msvc-gcc"
AR = "i386-mingw32msvc-ar"
PATH = "/opt/xmingw/bin:${PATH}"
MINGDIR ?= "/opt/xmingw/i386-mingw32msvc"

# Uncomment this and set it to 0 or 1 to disable the Ogg autodetect
# NO_OGG ?= "0"

# Uncomment this and set it to 1 to disable MPEG audio support
# NO_MPA ?= "1"

# Set this to 1 to enable Xv support. Note that you most likely won't have it
USE_XV ?= "0"

# Uncomment this and set it to 0 or 1 to disable AGUP autodetect
# NO_AGUP ?= "0"

# If the above is uncommented, set this to 0 or 1 if you have AGUP installed on
# the system, or in the local APEG directory
# AGUP_LOCAL ?= "0"


do ifopt --write-config
	error "You cannot use --write-config with xcompile.cbd!"
	exit 1
done

do ifexist /dev/null
	CFG_FILE = /dev/null
else
	CFG_FILE = delete.me
	rm ${CFG_FILE}
	define atexit_delcfg @!rm ${CFG_FILE}
done

invoke default.cbd