Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Side by Side Diff: net/third_party/udt/src/Makefile

Issue 6708091: Remove UDT. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/third_party/udt/doc/main.htm ('k') | net/third_party/udt/src/api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 C++ = g++
2
3 ifndef os
4 os = LINUX
5 endif
6
7 ifndef arch
8 arch = IA32
9 endif
10
11 CCFLAGS = -fPIC -Wall -Wextra -D$(os) -finline-functions -O3 -fno-strict-aliasin g #-msse3
12
13 ifeq ($(arch), IA32)
14 CCFLAGS += -DIA32
15 endif
16
17 ifeq ($(arch), POWERPC)
18 CCFLAGS += -mcpu=powerpc
19 endif
20
21 ifeq ($(arch), SPARC)
22 CCFLAGS += -mcpu=sparc
23 endif
24
25 ifeq ($(arch), IA64)
26 CCFLAGS += -DIA64
27 endif
28
29 ifeq ($(arch), AMD64)
30 CCFLAGS += -DAMD64
31 endif
32
33 OBJS = md5.o common.o window.o list.o buffer.o packet.o channel.o queue.o ccc.o cache.o core.o epoll.o api.o
34 DIR = $(shell pwd)
35
36 all: libudt.so libudt.a udt
37
38 %.o: %.cpp %.h udt.h
39 $(C++) $(CCFLAGS) $< -c
40
41 libudt.so: $(OBJS)
42 ifneq ($(os), OSX)
43 $(C++) -shared -o $@ $^
44 else
45 $(C++) -dynamiclib -o libudt.dylib -lstdc++ -lpthread -lm $^
46 endif
47
48 libudt.a: $(OBJS)
49 ar -rcs $@ $^
50
51 udt:
52 cp udt.h udt
53
54 clean:
55 rm -f *.o *.so *.dylib *.a udt
56
57 install:
58 export LD_LIBRARY_PATH=$(DIR):$$LD_LIBRARY_PATH
OLDNEW
« no previous file with comments | « net/third_party/udt/doc/main.htm ('k') | net/third_party/udt/src/api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698