author | raptorbot <raptorbot@systemstesthead.symbian.intra> |
Mon, 18 Jan 2010 19:33:31 +0000 | |
branch | wip |
changeset 136 | d84e89d4dde4 |
parent 16 | 4d5bb8330a27 |
child 252 | 6846d05399b6 |
permissions | -rw-r--r-- |
3 | 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 |
|
16
4d5bb8330a27
Cope with a test epocroot that's not in $EPOCROOT/test/testepocroot
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
3
diff
changeset
|
26 |
ifeq ($(SBS_MINGW),) |
3 | 27 |
LDFLAGS:=$(subst \,/,$(SBS_HOME:\=/)\win32\mingw\lib\libiberty.a) |
28 |
else |
|
16
4d5bb8330a27
Cope with a test epocroot that's not in $EPOCROOT/test/testepocroot
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
3
diff
changeset
|
29 |
LDFLAGS:=$(subst \,/,$(SBS_MINGW:\=/)\lib\libiberty.a) |
4d5bb8330a27
Cope with a test epocroot that's not in $EPOCROOT/test/testepocroot
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
3
diff
changeset
|
30 |
endif |
4d5bb8330a27
Cope with a test epocroot that's not in $EPOCROOT/test/testepocroot
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
3
diff
changeset
|
31 |
else |
3 | 32 |
PROCESS_C:=process.c |
33 |
CFLAGS:=-g |
|
34 |
linux_PTHREADLIBS:=-lpthread |
|
35 |
LDFLAGS:=$(linux_PTHREADLIBS) -lrt |
|
36 |
endif |
|
37 |
||
38 |
||
39 |
SOURCEDIR:=$(subst \,/,$(SBS_HOME))/util/talon |
|
40 |
||
41 |
||
42 |
# remember how to clean up: |
|
43 |
MANIFEST:=$(SOURCEDIR)/manifest |
|
44 |
||
45 |
TARGET:=talon |
|
46 |
SOURCES:=$(addprefix $(SOURCEDIR)/,talon.c buffer.c sema.c log.c $(PROCESS_C)) |
|
47 |
#$(info $(cprogram)) |
|
48 |
$(eval $(cprogram)) |
|
49 |
||
50 |
TARGET:=talonctl |
|
51 |
SOURCES:=$(addprefix $(SOURCEDIR)/,talonctl.c sema.c log.c) |
|
52 |
$(eval $(cprogram)) |
|
53 |
||
54 |
TARGET:=testbuffer |
|
55 |
SOURCES:=$(addprefix $(SOURCEDIR)/,testbuffer.c buffer.c log.c) |
|
56 |
$(eval $(cprogram)) |
|
57 |
||
58 |
TARGET:=testprocess |
|
59 |
SOURCES:=$(addprefix $(SOURCEDIR)/,testprocess.c buffer.c log.c $(PROCESS_C)) |
|
60 |
$(eval $(cprogram)) |
|
61 |
||
62 |
TARGET:=talonlock |
|
63 |
SOURCES:=$(addprefix $(SOURCEDIR)/,lock.c sema.c log.c) |
|
64 |
$(eval $(cprogram)) |
|
65 |