equal
deleted
inserted
replaced
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 |
26 ifeq ($(SBS_MINGW),) |
27 ifeq ($(SBS_MINGW),) |
27 LDFLAGS:=$(subst \,/,$(SBS_HOME:\=/)\win32\mingw\lib\libiberty.a) |
28 LDFLAGS:=$(subst \,/,$(SBS_HOME:\=/)\win32\mingw\lib\libiberty.a) |
28 else |
29 else |
29 LDFLAGS:=$(subst \,/,$(SBS_MINGW:\=/)\lib\libiberty.a) |
30 LDFLAGS:=$(subst \,/,$(SBS_MINGW:\=/)\lib\libiberty.a) |
30 endif |
31 endif |
31 else |
32 else |
|
33 CHOMP_C:= |
32 PROCESS_C:=process.c |
34 PROCESS_C:=process.c |
33 CFLAGS:=-g |
35 CFLAGS:=-g |
34 linux_PTHREADLIBS:=-lpthread |
36 linux_PTHREADLIBS:=-lpthread |
35 LDFLAGS:=$(linux_PTHREADLIBS) -lrt |
37 LDFLAGS:=$(linux_PTHREADLIBS) -lrt |
36 endif |
38 endif |
41 |
43 |
42 # remember how to clean up: |
44 # remember how to clean up: |
43 MANIFEST:=$(SOURCEDIR)/manifest |
45 MANIFEST:=$(SOURCEDIR)/manifest |
44 |
46 |
45 TARGET:=talon |
47 TARGET:=talon |
46 SOURCES:=$(addprefix $(SOURCEDIR)/,talon.c buffer.c sema.c log.c $(PROCESS_C)) |
48 SOURCES:=$(addprefix $(SOURCEDIR)/,talon.c buffer.c sema.c log.c $(PROCESS_C) $(CHOMP_C)) |
47 #$(info $(cprogram)) |
|
48 $(eval $(cprogram)) |
49 $(eval $(cprogram)) |
49 |
50 |
50 TARGET:=talonctl |
51 TARGET:=talonctl |
51 SOURCES:=$(addprefix $(SOURCEDIR)/,talonctl.c sema.c log.c) |
52 SOURCES:=$(addprefix $(SOURCEDIR)/,talonctl.c sema.c log.c) |
52 $(eval $(cprogram)) |
53 $(eval $(cprogram)) |
61 |
62 |
62 TARGET:=talonlock |
63 TARGET:=talonlock |
63 SOURCES:=$(addprefix $(SOURCEDIR)/,lock.c sema.c log.c) |
64 SOURCES:=$(addprefix $(SOURCEDIR)/,lock.c sema.c log.c) |
64 $(eval $(cprogram)) |
65 $(eval $(cprogram)) |
65 |
66 |
|
67 TARGET:=testchomp |
|
68 SOURCES:=$(addprefix $(SOURCEDIR)/,testchomp.c chomp.c log.c) |
|
69 $(eval $(cprogram)) |
|
70 |