equal
deleted
inserted
replaced
12 # |
12 # |
13 # Description: |
13 # Description: |
14 # Utility makefile |
14 # Utility makefile |
15 # |
15 # |
16 # |
16 # |
17 |
17 .PHONY: all |
18 |
18 all: |
19 SHELL:=bash |
19 cd .. && make talon |
20 |
|
21 include $(SBS_HOME:\=/)/util/gccprogram.mk |
|
22 |
|
23 ifeq ($(filter win,$(HOSTPLATFORM)),win) |
|
24 CHOMP_C:=chomp.c |
|
25 PROCESS_C:=process_win.c |
|
26 CFLAGS:=-DHOST_WIN |
|
27 ifeq ($(SBS_MINGW),) |
|
28 LDFLAGS:=$(subst \,/,$(SBS_HOME:\=/)\win32\mingw\lib\libiberty.a) |
|
29 else |
|
30 LDFLAGS:=$(subst \,/,$(SBS_MINGW:\=/)\lib\libiberty.a) |
|
31 endif |
|
32 LDFLAGS:=$(LDFLAGS) -Wl,-lws2_32 |
|
33 else |
|
34 CHOMP_C:= |
|
35 PROCESS_C:=process.c |
|
36 CFLAGS:=-g |
|
37 linux_PTHREADLIBS:=-lpthread |
|
38 LDFLAGS:=$(linux_PTHREADLIBS) -lrt |
|
39 endif |
|
40 |
|
41 |
|
42 SOURCEDIR:=$(subst \,/,$(SBS_HOME))/util/talon |
|
43 |
|
44 |
|
45 # remember how to clean up: |
|
46 MANIFEST:=$(SOURCEDIR)/manifest |
|
47 |
|
48 TARGET:=talon |
|
49 SOURCES:=$(addprefix $(SOURCEDIR)/,talon.c buffer.c sema.c log.c $(PROCESS_C) $(CHOMP_C)) |
|
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 |
|
68 TARGET:=testchomp |
|
69 SOURCES:=$(addprefix $(SOURCEDIR)/,testchomp.c chomp.c log.c) |
|
70 $(eval $(cprogram)) |
|
71 |
|