# =============================================================================
# Basic template makefile for VR Juggler applications.
#
# *** IMPORTANT NOTES -- READ THESE FIRST ***
#     1) This file _requires_ the use of GNU make (gmake).
# =============================================================================

# Nothing but comments should come before this line.
default: all

# -----------------------------------------------------------------------------
# Application-specific variable settings.  It is safe to modify these.
# -----------------------------------------------------------------------------

# The application name that is built.  A value must be set for this!
APP_NAME	= menu

# The directory where the source files for this application are located.
srcdir  	= .

# Compiler flags needed for this application.  They are used as follows:
#
#    DEBUG_APP         - If set to TRUE, this application will be compiled with
#                        debugging symbols and no optimized symbols
#    OPTIM_APP         - If set to TRUE, this application will be compiled with
#                        optimized symbols and no debugging symbols
#    EXTRA_CFLAGS      - Extra application-specific C compiler flags
#    EXTRA_CXXFLAGS    - Extra application-specific C++ compiler flags
#    EXTRA_DEBUG_FLAGS - Extra application-specific compiler debugging flags
#    EXTRA_INCLUDES    - Extra include paths (-I... options) for the compilers
#    EXTRA_OPTIM_FLAGS - Extra application-specific compiler optimization flags
#
DEBUG_APP		= TRUE
OPTIM_APP		= FALSE
EXTRA_CFLAGS		=
EXTRA_CXXFLAGS		=
EXTRA_DEBUG_FLAGS	=
EXTRA_INCLUDES		=
EXTRA_OPTIM_FLAGS	=

# The list of all source files needed for this application.  Based on this,
# a list of object files is put in $(OBJS) automatically.
SRCS		= menu.cpp pfMenu.cpp

# This is for extra libraries needed specfically for your application.  The
# general libraries needed for applications are in $(LIBS).
EXTRA_LIBS	=

# This is for extra system libraries (-lpthread for example) needed
# specifically for this application.  These are added to the linker command
# after all the basic libraries and all the system libraries.
EXTRA_SYS_LIBS	=

# Extend this as necessary to find source files that are not in the current
# directory.  Set EXTRA_PATH_FOR_SOURCES to all the directories that you
# have sources in. (current dir is already included by default)
EXTRA_PATH_FOR_SOURCES = 

# Additional files and directories besides the standard ones that need to be
# removed by the 'clean' target.
CLEAN_FILES	=
CLEAN_DIRS	=

# The following include line MUST COME BEFORE the targets for compiling the
# application.
#
# To build an application, include one of the following basic files:
#
#     vrac.glapp.mk         - An ordinary OpenGL app
#     vrac.pfapp.mk         - An ordinary Performer app
#     vrac.juggler.glapp.mk - An ordinary VR Juggler OpenGL app
#     vrac.juggler.pfapp.mk - An ordinary VR Juggler Performer app
#
include /home/vr/apps/mk/vrac.pfapp.mk

# For additional features, include one or more of the following extra files:
#
#     vrac.aw.mk       - Add sound using AudioWorks
#     vrac.sl.mk       - Add sound using SL
#     vrac.switcher.mk - Add capabilities to get this application compiled
#                        into a VR Juggler switcher
#
#include /home/vr/apps/mk/...

# -----------------------------------------------------------------------------
# Targets.
# -----------------------------------------------------------------------------
all: $(APP_NAME)

# Target for the application to be built.
$(APP_NAME): $(OBJS)
	$(LINK) -o $@ $(OBJS) $(EXTRA_LIBS) $(LIBS)