625
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
1 |
# Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
2 |
# All rights reserved.
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
3 |
# This component and the accompanying materials are made available
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
4 |
# under the terms of the License "Eclipse Public License v1.0"
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
5 |
# which accompanies this distribution, and is available
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
6 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
7 |
#
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
8 |
# Initial Contributors:
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
9 |
# Nokia Corporation - initial contribution.
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
10 |
#
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
11 |
# Contributors:
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
12 |
#
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
13 |
# Description:
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
14 |
# Utility makefile
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
15 |
#
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
16 |
#
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
17 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
18 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
19 |
SHELL:=bash
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
20 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
21 |
include $(SBS_HOME:\=/)/util/gccprogram.mk
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
22 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
23 |
ifeq ($(filter win,$(HOSTPLATFORM)),win)
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
24 |
CHOMP_C:=chomp.c
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
25 |
PROCESS_C:=process_win.c
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
26 |
CFLAGS:=-DHOST_WIN
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
27 |
ifeq ($(SBS_MINGW),)
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
28 |
LDFLAGS:=$(subst \,/,$(SBS_HOME:\=/)\win32\mingw\lib\libiberty.a)
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
29 |
else
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
30 |
LDFLAGS:=$(subst \,/,$(SBS_MINGW:\=/)\lib\libiberty.a)
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
31 |
endif
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
32 |
LDFLAGS:=$(LDFLAGS) -Wl,-lws2_32
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
33 |
else
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
34 |
CHOMP_C:=
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
35 |
PROCESS_C:=process.c
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
36 |
CFLAGS:=-g
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
37 |
linux_PTHREADLIBS:=-lpthread
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
38 |
LDFLAGS:=$(linux_PTHREADLIBS) -lrt
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
39 |
endif
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
40 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
41 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
42 |
SOURCEDIR:=$(subst \,/,$(SBS_HOME))/util/talon
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
43 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
44 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
45 |
# remember how to clean up:
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
46 |
MANIFEST:=$(SOURCEDIR)/manifest
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
47 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
48 |
TARGET:=talon
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
49 |
SOURCES:=$(addprefix $(SOURCEDIR)/,talon.c buffer.c sema.c log.c $(PROCESS_C) $(CHOMP_C))
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
50 |
$(eval $(cprogram))
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
51 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
52 |
TARGET:=talonctl
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
53 |
SOURCES:=$(addprefix $(SOURCEDIR)/,talonctl.c sema.c log.c)
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
54 |
$(eval $(cprogram))
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
55 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
56 |
TARGET:=testbuffer
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
57 |
SOURCES:=$(addprefix $(SOURCEDIR)/,testbuffer.c buffer.c log.c)
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
58 |
$(eval $(cprogram))
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
59 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
60 |
TARGET:=testprocess
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
61 |
SOURCES:=$(addprefix $(SOURCEDIR)/,testprocess.c buffer.c log.c $(PROCESS_C))
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
62 |
$(eval $(cprogram))
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
63 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
64 |
TARGET:=talonlock
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
65 |
SOURCES:=$(addprefix $(SOURCEDIR)/,lock.c sema.c log.c)
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
66 |
$(eval $(cprogram))
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
67 |
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
68 |
TARGET:=testchomp
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
69 |
SOURCES:=$(addprefix $(SOURCEDIR)/,testchomp.c chomp.c log.c)
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
70 |
$(eval $(cprogram))
|
Richard Taylor <richard.i.taylor@nokia.com>
parents:
diff
changeset
|
71 |
|