#-------------------------------------------------------------------------------
# Host SW Linux Userspace Module Makefile
#
# This is the makefile for individual modules (basically folders) that make up
# the Host SW userspace application. This makefile is responsible for creating
# .o files.
# 
# Build options:
# 
# -CONFIG=Release|Debug
# A release build will be created by default. 
#
# Copyright (c) Teradici Corporation (2013)
#-------------------------------------------------------------------------------

include ../common/build/makefile.common

# Location of headers
INCLUDES += -Iinc
INCLUDES += -Ires
INCLUDES += -I../common/inc
INCLUDES += -I../log/inc
INCLUDES += -I../../../common/linux/inc
INCLUDES += -I../cfg/inc
INCLUDES += -I../dev/inc
INCLUDES += -I../disp/inc
INCLUDES += -I../netif/inc
INCLUDES += -I../pcoip_link/inc
INCLUDES += -I../sinst/inc

# Location of sources
VPATH += src:
VPATH += res

# Based on the build configuration, we have to use the proper WX Widget compile
# and library flags/path. The 'wx-config' command is a symbolic link to an 
# application that returns the proper component names and paths based on the
# WX Widget properties.
ifeq ($(CONFIG),Release)
EXTRA_DEFINES = $(shell wx-config  --version=2.8 --unicode=yes --debug=no --static=yes --cflags)
else
EXTRA_DEFINES = $(shell wx-config  --version=2.8 --unicode=yes --debug=yes --static=yes --cflags)
endif
EXTRA_DEFINES += $(shell pkg-config --cflags gtk+-2.0)

# Objects that need to be created
OBJS_RAW += \
	tera_pcoip_agent_gui_res.o \
	tera_pcoip_agent.o \
	tera_pcoip_agent_log.o \
	tera_pcoip_agent_gui.o \
	tera_pcoip_agent_gui_prop.o \
	tera_pcoip_agent_gui_prop_about.o \
	tera_pcoip_agent_gui_prop_feat.o \
	tera_pcoip_agent_gui_prop_img.o \
	tera_pcoip_agent_gui_prop_mon.o \
	tera_pcoip_agent_gui_prop_net.o \
	tera_pcoip_agent_gui_prop_stat.o \
	tera_pcoip_agent_gui_tray.o			

include ../common/build/makefile.module
