1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
# -----------------------------------------------------------------------------
TOP = ..
include $(TOP)/mk/boilerplate.mk
-include config.mk
ifneq "$(AL_BUILD_PACKAGE)" "no"
# -----------------------------------------------------------------------------
SUBDIRS = include
ifeq "$(IncludeExampleDirsInBuild)" "YES"
SUBDIRS += examples
endif
ALL_DIRS = \
Sound \
Sound/OpenAL \
Sound/OpenAL/AL \
Sound/OpenAL/ALC \
Sound/OpenAL/ALUT
PACKAGE = OpenAL
PACKAGE_DEPS = base OpenGL
SRC_HC_OPTS += -Wall -fffi -Iinclude '-\#include "HsOpenAL.h"' -cpp
# WinDoze DLL hell
ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
SRC_HC_OPTS += -DCALLCONV=stdcall
SRC_HC_OPTS := $(subst -mno-cygwin,,$(SRC_HC_OPTS))
else
SRC_HC_OPTS += -DCALLCONV=ccall
endif
SRC_HADDOCK_OPTS += -t "HOpenAL Libraries (OpenAL package)" -p prologue.txt
# yeuch, have to get AL_LIBS in through CPP to package.conf.in
comma = ,
PACKAGE_CPP_OPTS += -DAL_LIBS='$(patsubst %,$(comma)"%",$(AL_LIBS))'
# -----------------------------------------------------------------------------
Sound/OpenAL/AL/BasicTypes.$(way_)o \
Sound/OpenAL/AL/Format.$(way_)o \
Sound/OpenAL/ALC/BasicTypes.$(way_)o \
Sound/OpenAL/ALC/Errors.$(way_)o \
Sound/OpenAL/ALC/Queries.$(way_)o : include/HsOpenALConfig.h
# -----------------------------------------------------------------------------
DIST_CLEAN_FILES += config.cache config.status config.mk
extraclean::
$(RM) -rf autom4te.cache
# -----------------------------------------------------------------------------
endif
include $(TOP)/mk/target.mk
|