# Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).# All rights reserved.# This component and the accompanying materials are made available# under the terms of the License "Eclipse Public License v1.0"# which accompanies this distribution, and is available# at the URL "http://www.eclipse.org/legal/epl-v10.html".## Initial Contributors:# Nokia Corporation - initial contribution.## Contributors:## Description:# Utility makefile ##SHELL:=bashinclude $(SBS_HOME:\=/)/util/gccprogram.mkifeq ($(filter win,$(HOSTPLATFORM)),win)CHOMP_C:=chomp.cPROCESS_C:=process_win.cCFLAGS:=-DHOST_WINifeq ($(SBS_MINGW),)LDFLAGS:=$(subst \,/,$(SBS_HOME:\=/)\win32\mingw\lib\libiberty.a)elseLDFLAGS:=$(subst \,/,$(SBS_MINGW:\=/)\lib\libiberty.a)endifLDFLAGS:=$(LDFLAGS) -Wl,-lws2_32elseCHOMP_C:=PROCESS_C:=process.cCFLAGS:=-glinux_PTHREADLIBS:=-lpthreadLDFLAGS:=$(linux_PTHREADLIBS) -lrtendifSOURCEDIR:=$(subst \,/,$(SBS_HOME))/util/talon# remember how to clean up:MANIFEST:=$(SOURCEDIR)/manifestTARGET:=talonSOURCES:=$(addprefix $(SOURCEDIR)/,talon.c buffer.c sema.c log.c $(PROCESS_C) $(CHOMP_C)) $(eval $(cprogram))TARGET:=talonctlSOURCES:=$(addprefix $(SOURCEDIR)/,talonctl.c sema.c log.c)$(eval $(cprogram))TARGET:=testbufferSOURCES:=$(addprefix $(SOURCEDIR)/,testbuffer.c buffer.c log.c)$(eval $(cprogram))TARGET:=testprocessSOURCES:=$(addprefix $(SOURCEDIR)/,testprocess.c buffer.c log.c $(PROCESS_C))$(eval $(cprogram))TARGET:=talonlockSOURCES:=$(addprefix $(SOURCEDIR)/,lock.c sema.c log.c)$(eval $(cprogram))TARGET:=testchompSOURCES:=$(addprefix $(SOURCEDIR)/,testchomp.c chomp.c log.c)$(eval $(cprogram))