sbsv2/raptor/util/talon/Makefile
changeset 590 360bd6b35136
parent 0 044383f39525
child 625 a1925fb7753a
equal deleted inserted replaced
588:c7c26511138f 590:360bd6b35136
     1 # Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 # Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 # All rights reserved.
     2 # All rights reserved.
     3 # This component and the accompanying materials are made available
     3 # This component and the accompanying materials are made available
     4 # under the terms of the License "Eclipse Public License v1.0"
     4 # under the terms of the License "Eclipse Public License v1.0"
     5 # which accompanies this distribution, and is available
     5 # which accompanies this distribution, and is available
     6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
    19 SHELL:=bash
    19 SHELL:=bash
    20 
    20 
    21 include $(SBS_HOME:\=/)/util/gccprogram.mk
    21 include $(SBS_HOME:\=/)/util/gccprogram.mk
    22 
    22 
    23 ifeq ($(filter win,$(HOSTPLATFORM)),win)
    23 ifeq ($(filter win,$(HOSTPLATFORM)),win)
       
    24 CHOMP_C:=chomp.c
    24 PROCESS_C:=process_win.c
    25 PROCESS_C:=process_win.c
    25 CFLAGS:=-DHOST_WIN
    26 CFLAGS:=-DHOST_WIN
       
    27 ifeq ($(SBS_MINGW),)
    26 LDFLAGS:=$(subst \,/,$(SBS_HOME:\=/)\win32\mingw\lib\libiberty.a)
    28 LDFLAGS:=$(subst \,/,$(SBS_HOME:\=/)\win32\mingw\lib\libiberty.a)
    27 else
    29 else
       
    30 LDFLAGS:=$(subst \,/,$(SBS_MINGW:\=/)\lib\libiberty.a)
       
    31 endif
       
    32 LDFLAGS:=$(LDFLAGS) -Wl,-lws2_32
       
    33 else
       
    34 CHOMP_C:=
    28 PROCESS_C:=process.c
    35 PROCESS_C:=process.c
    29 CFLAGS:=-g
    36 CFLAGS:=-g
    30 linux_PTHREADLIBS:=-lpthread
    37 linux_PTHREADLIBS:=-lpthread
    31 LDFLAGS:=$(linux_PTHREADLIBS) -lrt
    38 LDFLAGS:=$(linux_PTHREADLIBS) -lrt
    32 endif
    39 endif
    37 
    44 
    38 # remember how to clean up:
    45 # remember how to clean up:
    39 MANIFEST:=$(SOURCEDIR)/manifest
    46 MANIFEST:=$(SOURCEDIR)/manifest
    40 
    47 
    41 TARGET:=talon
    48 TARGET:=talon
    42 SOURCES:=$(addprefix $(SOURCEDIR)/,talon.c buffer.c sema.c log.c $(PROCESS_C))
    49 SOURCES:=$(addprefix $(SOURCEDIR)/,talon.c buffer.c sema.c log.c $(PROCESS_C) $(CHOMP_C)) 
    43 #$(info $(cprogram))
       
    44 $(eval $(cprogram))
    50 $(eval $(cprogram))
    45 
    51 
    46 TARGET:=talonctl
    52 TARGET:=talonctl
    47 SOURCES:=$(addprefix $(SOURCEDIR)/,talonctl.c sema.c log.c)
    53 SOURCES:=$(addprefix $(SOURCEDIR)/,talonctl.c sema.c log.c)
    48 $(eval $(cprogram))
    54 $(eval $(cprogram))
    57 
    63 
    58 TARGET:=talonlock
    64 TARGET:=talonlock
    59 SOURCES:=$(addprefix $(SOURCEDIR)/,lock.c sema.c log.c)
    65 SOURCES:=$(addprefix $(SOURCEDIR)/,lock.c sema.c log.c)
    60 $(eval $(cprogram))
    66 $(eval $(cprogram))
    61 
    67 
       
    68 TARGET:=testchomp
       
    69 SOURCES:=$(addprefix $(SOURCEDIR)/,testchomp.c chomp.c log.c)
       
    70 $(eval $(cprogram))
       
    71