author | raptorbot <raptorbot@systemstesthead.symbian.intra> |
Tue, 23 Feb 2010 19:02:48 +0000 | |
branch | fix |
changeset 252 | 6846d05399b6 |
parent 16 | 4d5bb8330a27 |
child 256 | ac7e607c7d30 |
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) |
|
252
6846d05399b6
SF Bug 2000 - test code for commandline parsing.
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
16
diff
changeset
|
24 |
CHOMP_C:=chomp.c |
3 | 25 |
PROCESS_C:=process_win.c |
26 |
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
|
27 |
ifeq ($(SBS_MINGW),) |
3 | 28 |
LDFLAGS:=$(subst \,/,$(SBS_HOME:\=/)\win32\mingw\lib\libiberty.a) |
29 |
else |
|
16
4d5bb8330a27
Cope with a test epocroot that's not in $EPOCROOT/test/testepocroot
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
3
diff
changeset
|
30 |
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
|
31 |
endif |
4d5bb8330a27
Cope with a test epocroot that's not in $EPOCROOT/test/testepocroot
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
3
diff
changeset
|
32 |
else |
252
6846d05399b6
SF Bug 2000 - test code for commandline parsing.
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
16
diff
changeset
|
33 |
CHOMP_C:= |
3 | 34 |
PROCESS_C:=process.c |
35 |
CFLAGS:=-g |
|
36 |
linux_PTHREADLIBS:=-lpthread |
|
37 |
LDFLAGS:=$(linux_PTHREADLIBS) -lrt |
|
38 |
endif |
|
39 |
||
40 |
||
41 |
SOURCEDIR:=$(subst \,/,$(SBS_HOME))/util/talon |
|
42 |
||
43 |
||
44 |
# remember how to clean up: |
|
45 |
MANIFEST:=$(SOURCEDIR)/manifest |
|
46 |
||
47 |
TARGET:=talon |
|
252
6846d05399b6
SF Bug 2000 - test code for commandline parsing.
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
16
diff
changeset
|
48 |
SOURCES:=$(addprefix $(SOURCEDIR)/,talon.c buffer.c sema.c log.c $(PROCESS_C) $(CHOMP_C)) |
3 | 49 |
#$(info $(cprogram)) |
50 |
$(eval $(cprogram)) |
|
51 |
||
52 |
TARGET:=talonctl |
|
53 |
SOURCES:=$(addprefix $(SOURCEDIR)/,talonctl.c sema.c log.c) |
|
54 |
$(eval $(cprogram)) |
|
55 |
||
56 |
TARGET:=testbuffer |
|
57 |
SOURCES:=$(addprefix $(SOURCEDIR)/,testbuffer.c buffer.c log.c) |
|
58 |
$(eval $(cprogram)) |
|
59 |
||
60 |
TARGET:=testprocess |
|
61 |
SOURCES:=$(addprefix $(SOURCEDIR)/,testprocess.c buffer.c log.c $(PROCESS_C)) |
|
62 |
$(eval $(cprogram)) |
|
63 |
||
64 |
TARGET:=talonlock |
|
65 |
SOURCES:=$(addprefix $(SOURCEDIR)/,lock.c sema.c log.c) |
|
66 |
$(eval $(cprogram)) |
|
67 |
||
252
6846d05399b6
SF Bug 2000 - test code for commandline parsing.
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
16
diff
changeset
|
68 |
TARGET:=testchomp |
6846d05399b6
SF Bug 2000 - test code for commandline parsing.
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
16
diff
changeset
|
69 |
SOURCES:=$(addprefix $(SOURCEDIR)/,testchomp.c chomp.c log.c) |
6846d05399b6
SF Bug 2000 - test code for commandline parsing.
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
16
diff
changeset
|
70 |
$(eval $(cprogram)) |
6846d05399b6
SF Bug 2000 - test code for commandline parsing.
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
16
diff
changeset
|
71 |