Index: net/third_party/udt/app/Makefile |
=================================================================== |
--- net/third_party/udt/app/Makefile (revision 78992) |
+++ net/third_party/udt/app/Makefile (working copy) |
@@ -1,55 +0,0 @@ |
-C++ = g++ |
- |
-ifndef os |
- os = LINUX |
-endif |
- |
-ifndef arch |
- arch = IA32 |
-endif |
- |
-CCFLAGS = -Wall -D$(os) -I../src -finline-functions -O3 |
- |
-ifeq ($(arch), IA32) |
- CCFLAGS += -DIA32 #-mcpu=pentiumpro -march=pentiumpro -mmmx -msse |
-endif |
- |
-ifeq ($(arch), POWERPC) |
- CCFLAGS += -mcpu=powerpc |
-endif |
- |
-ifeq ($(arch), IA64) |
- CCFLAGS += -DIA64 |
-endif |
- |
-LDFLAGS = -L../src -ludt -lstdc++ -lpthread -lm |
- |
-ifeq ($(os), UNIX) |
- LDFLAGS += -lsocket |
-endif |
- |
-DIR = $(shell pwd) |
- |
-APP = appserver appclient sendfile recvfile test |
- |
-all: $(APP) |
- |
-%.o: %.cpp |
- $(C++) $(CCFLAGS) $< -c |
- |
-appserver: appserver.o |
- $(C++) $^ -o $@ $(LDFLAGS) |
-appclient: appclient.o |
- $(C++) $^ -o $@ $(LDFLAGS) |
-sendfile: sendfile.o |
- $(C++) $^ -o $@ $(LDFLAGS) |
-recvfile: recvfile.o |
- $(C++) $^ -o $@ $(LDFLAGS) |
-test: test.o |
- $(C++) $^ -o $@ $(LDFLAGS) |
- |
-clean: |
- rm -f *.o $(APP) |
- |
-install: |
- export PATH=$(DIR):$$PATH |