sbsv2/raptor/util/talon/Makefile
changeset 0 044383f39525
child 3 e1eecf4d390d
child 590 360bd6b35136
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 # Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 # All rights reserved.
       
     3 # This component and the accompanying materials are made available
       
     4 # under the terms of the License "Eclipse Public License v1.0"
       
     5 # which accompanies this distribution, and is available
       
     6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 #
       
     8 # Initial Contributors:
       
     9 # Nokia Corporation - initial contribution.
       
    10 #
       
    11 # Contributors:
       
    12 #
       
    13 # Description:
       
    14 # Utility makefile 
       
    15 #
       
    16 #
       
    17 
       
    18 
       
    19 SHELL:=bash
       
    20 
       
    21 include $(SBS_HOME:\=/)/util/gccprogram.mk
       
    22 
       
    23 ifeq ($(filter win,$(HOSTPLATFORM)),win)
       
    24 PROCESS_C:=process_win.c
       
    25 CFLAGS:=-DHOST_WIN
       
    26 LDFLAGS:=$(subst \,/,$(SBS_HOME:\=/)\win32\mingw\lib\libiberty.a)
       
    27 else
       
    28 PROCESS_C:=process.c
       
    29 CFLAGS:=-g
       
    30 linux_PTHREADLIBS:=-lpthread
       
    31 LDFLAGS:=$(linux_PTHREADLIBS) -lrt
       
    32 endif
       
    33 
       
    34 
       
    35 SOURCEDIR:=$(subst \,/,$(SBS_HOME))/util/talon
       
    36 
       
    37 
       
    38 # remember how to clean up:
       
    39 MANIFEST:=$(SOURCEDIR)/manifest
       
    40 
       
    41 TARGET:=talon
       
    42 SOURCES:=$(addprefix $(SOURCEDIR)/,talon.c buffer.c sema.c log.c $(PROCESS_C))
       
    43 #$(info $(cprogram))
       
    44 $(eval $(cprogram))
       
    45 
       
    46 TARGET:=talonctl
       
    47 SOURCES:=$(addprefix $(SOURCEDIR)/,talonctl.c sema.c log.c)
       
    48 $(eval $(cprogram))
       
    49 
       
    50 TARGET:=testbuffer
       
    51 SOURCES:=$(addprefix $(SOURCEDIR)/,testbuffer.c buffer.c log.c)
       
    52 $(eval $(cprogram))
       
    53 
       
    54 TARGET:=testprocess
       
    55 SOURCES:=$(addprefix $(SOURCEDIR)/,testprocess.c buffer.c log.c  $(PROCESS_C))
       
    56 $(eval $(cprogram))
       
    57 
       
    58 TARGET:=talonlock
       
    59 SOURCES:=$(addprefix $(SOURCEDIR)/,lock.c sema.c log.c)
       
    60 $(eval $(cprogram))
       
    61