mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
055d1b1dd6
git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@4 ea6a568a-9f4f-0410-981a-c910a81bb256
34 lines
868 B
Makefile
34 lines
868 B
Makefile
# Designed for GNU Make
|
|
|
|
# Compiler settings
|
|
CXX?= g++
|
|
CXXFLAGS?=
|
|
|
|
# Replace this path with your OIS include path
|
|
OIS_PATH=../../software/include
|
|
|
|
# Compiler settings for Ogre + OIS. Change as needed.
|
|
OGCC=$(CXX) $(CXXFLAGS) `pkg-config --cflags OGRE` -I$(OIS_PATH)
|
|
|
|
# Compiler settings for Audiere
|
|
AGCC=$(CXX) $(CXXFLAGS) `audiere-config --cxxflags`
|
|
|
|
# Ogre C++ files, on the form ogre/cpp_X.cpp. Only the first file is
|
|
# passed to the compiler, the rest are dependencies.
|
|
ogre_cpp=ogre framelistener interface overlay bsaarchive
|
|
|
|
# Audiere C++ files, on the form sound/cpp_X.cpp.
|
|
audiere_cpp=audiere
|
|
|
|
## The rest of this file is automatic ##
|
|
ogre_cpp_files=$(ogre_cpp:%=ogre/cpp_%.cpp)
|
|
audiere_cpp_files=$(audiere_cpp:%=sound/cpp_%.cpp)
|
|
|
|
all: cpp_ogre.o cpp_audiere.o
|
|
|
|
cpp_ogre.o: $(ogre_cpp_files)
|
|
$(OGCC) -c $<
|
|
|
|
cpp_audiere.o: $(audiere_cpp_files)
|
|
$(AGCC) -c $<
|