-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile.POSIX
163 lines (144 loc) · 5.71 KB
/
Makefile.POSIX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
#
NAME = DarwinStreamingServer
C++ = $(CPLUS)
CC = $(CCOMP)
LINK = $(LINKER)
CCFLAGS += $(COMPILER_FLAGS) -DDSS_USE_API_CALLBACKS -g -Wall -Wno-format-y2k $(INCLUDE_FLAG) PlatformHeader.h
LIBS = $(CORE_LINK_LIBS) -lCommonUtilitiesLib -lQTFileLib
# OPTIMIZATION
CCFLAGS += -O3
# EACH DIRECTORY WITH HEADERS MUST BE APPENDED IN THIS MANNER TO THE CCFLAGS
CCFLAGS += -I.
CCFLAGS += -IQTFileLib
CCFLAGS += -IOSMemoryLib
CCFLAGS += -IRTSPClientLib
CCFLAGS += -IAPIModules
CCFLAGS += -IAPICommonCode
CCFLAGS += -IAPIModules/OSMemory_Modules
CCFLAGS += -IAPIModules/QTSSAccessLogModule
CCFLAGS += -IAPIModules/QTSSDSAuthModule
CCFLAGS += -IAPIModules/QTSSFileModule
CCFLAGS += -IAPIModules/QTSSFlowControlModule
CCFLAGS += -IAPIModules/QTSSReflectorModule
CCFLAGS += -IAPIModules/QTSSSvrControlModule
CCFLAGS += -IAPIModules/QTSSWebDebugModule
CCFLAGS += -IAPIModules/QTSSWebStatsModule
CCFLAGS += -IAPIModules/QTSSAuthorizeModule
CCFLAGS += -IAPIModules/QTSSPOSIXFileSysModule
CCFLAGS += -IAPIModules/QTSSAdminModule
CCFLAGS += -IAPIModules/QTSSMP3StreamingModule
CCFLAGS += -IAPIModules/QTSSRTPFileModule
CCFLAGS += -IAPIModules/QTSSAccessModule
CCFLAGS += -IAPIModules/QTSSHttpFileModule
CCFLAGS += -IQTFileTools/RTPFileGen.tproj
CCFLAGS += -IAPIStubLib
CCFLAGS += -ICommonUtilitiesLib
CCFLAGS += -IRTCPUtilitiesLib
CCFLAGS += -IHTTPUtilitiesLib
CCFLAGS += -IRTPMetaInfoLib
CCFLAGS += -IPrefsSourceLib
CCFLAGS += -IServer.tproj
# EACH DIRECTORY WITH A STATIC LIBRARY MUST BE APPENDED IN THIS MANNER TO THE LINKOPTS
LINKOPTS = -LCommonUtilitiesLib
LINKOPTS += -LQTFileLib
C++FLAGS = $(CCFLAGS)
CFILES = CommonUtilitiesLib/daemon.c
CPPFILES = Server.tproj/QTSSExpirationDate.cpp\
Server.tproj/QTSSCallbacks.cpp \
Server.tproj/QTSSDictionary.cpp\
Server.tproj/QTSSDataConverter.cpp \
Server.tproj/QTSSErrorLogModule.cpp \
Server.tproj/QTSSMessages.cpp\
Server.tproj/QTSSModule.cpp \
Server.tproj/QTSServerPrefs.cpp\
Server.tproj/QTSSSocket.cpp\
Server.tproj/QTSSFile.cpp\
Server.tproj/QTSSPrefs.cpp \
Server.tproj/QTSServer.cpp\
Server.tproj/QTSServerInterface.cpp \
Server.tproj/RTCPTask.cpp\
Server.tproj/RTPSession.cpp \
Server.tproj/RTPPacketResender.cpp \
Server.tproj/RTPBandwidthTracker.cpp \
Server.tproj/RTPOverbufferWindow.cpp \
Server.tproj/RTPSessionInterface.cpp\
Server.tproj/RTPSession3GPP.cpp \
Server.tproj/RTPStream.cpp \
Server.tproj/RTPStream3gpp.cpp \
Server.tproj/RTSPProtocol.cpp\
Server.tproj/RTSPRequest.cpp \
Server.tproj/RTSPRequest3GPP.cpp \
Server.tproj/RTSPRequestInterface.cpp\
Server.tproj/RTSPRequestStream.cpp \
Server.tproj/RTSPResponseStream.cpp\
Server.tproj/RTSPSession.cpp \
Server.tproj/RTSPSession3GPP.cpp \
Server.tproj/RTSPSessionInterface.cpp\
Server.tproj/main.cpp \
Server.tproj/RunServer.cpp \
Server.tproj/GenerateXMLPrefs.cpp \
Server.tproj/QTSSUserProfile.cpp\
PrefsSourceLib/FilePrefsSource.cpp\
PrefsSourceLib/XMLPrefsParser.cpp \
PrefsSourceLib/XMLParser.cpp \
OSMemoryLib/OSMemory.cpp \
RTSPClientLib/RTSPClient.cpp \
RTSPClientLib/ClientSocket.cpp \
HTTPUtilitiesLib/HTTPProtocol.cpp \
HTTPUtilitiesLib/HTTPRequest.cpp \
RTCPUtilitiesLib/RTCPAPPPacket.cpp\
RTCPUtilitiesLib/RTCPAPPNADUPacket.cpp \
RTCPUtilitiesLib/RTCPAPPQTSSPacket.cpp \
RTCPUtilitiesLib/RTCPPacket.cpp \
RTCPUtilitiesLib/RTCPSRPacket.cpp\
RTCPUtilitiesLib/RTCPAckPacket.cpp\
RTPMetaInfoLib/RTPMetaInfoPacket.cpp\
APIStubLib/QTSS_Private.cpp \
APICommonCode/QTSSModuleUtils.cpp\
APICommonCode/QTSSRollingLog.cpp \
APICommonCode/SDPSourceInfo.cpp \
APICommonCode/SourceInfo.cpp \
APICommonCode/QTAccessFile.cpp \
APICommonCode/QTSS3GPPModuleUtils.cpp \
SafeStdLib/InternalStdLib.cpp \
APIModules/QTSSAccessLogModule/QTSSAccessLogModule.cpp \
APIModules/QTSSFileModule/QTSSFileModule.cpp \
APIModules/QTSSFlowControlModule/QTSSFlowControlModule.cpp \
APIModules/QTSSReflectorModule/QTSSReflectorModule.cpp \
APIModules/QTSSReflectorModule/QTSSRelayModule.cpp \
APIModules/QTSSReflectorModule/ReflectorSession.cpp\
APIModules/QTSSReflectorModule/RelaySession.cpp\
APIModules/QTSSReflectorModule/ReflectorStream.cpp\
APIModules/QTSSReflectorModule/RCFSourceInfo.cpp \
APIModules/QTSSReflectorModule/RTSPSourceInfo.cpp \
APIModules/QTSSReflectorModule/RelayOutput.cpp \
APIModules/QTSSReflectorModule/RelaySDPSourceInfo.cpp \
APIModules/QTSSReflectorModule/RTPSessionOutput.cpp \
APIModules/QTSSReflectorModule/SequenceNumberMap.cpp \
APIModules/QTSSWebDebugModule/QTSSWebDebugModule.cpp \
APIModules/QTSSWebStatsModule/QTSSWebStatsModule.cpp \
APIModules/QTSSPOSIXFileSysModule/QTSSPosixFileSysModule.cpp \
APIModules/QTSSAdminModule/AdminElementNode.cpp \
APIModules/QTSSAdminModule/AdminQuery.cpp \
APIModules/QTSSAdminModule/QTSSAdminModule.cpp \
APIModules/QTSSMP3StreamingModule/QTSSMP3StreamingModule.cpp \
APIModules/QTSSRTPFileModule/QTSSRTPFileModule.cpp \
APIModules/QTSSRTPFileModule/RTPFileSession.cpp \
APIModules/QTSSAccessModule/QTSSAccessModule.cpp \
APIModules/QTSSHttpFileModule/QTSSHttpFileModule.cpp \
APIModules/QTSSAccessModule/AccessChecker.cpp
# CCFLAGS += $(foreach dir,$(HDRS),-I$(dir))
LIBFILES = QTFileLib/libQTFileLib.a \
CommonUtilitiesLib/libCommonUtilitiesLib.a
all: DarwinStreamingServer
DarwinStreamingServer: $(CFILES:.c=.o) $(CPPFILES:.cpp=.o) $(LIBFILES)
$(LINK) -o $@ $(CFILES:.c=.o) $(CPPFILES:.cpp=.o) $(COMPILER_FLAGS) $(LINKOPTS) $(LIBS)
install: DarwinStreamingServer
clean:
rm -f $(CFILES:.c=.o) $(CPPFILES:.cpp=.o)
.SUFFIXES: .cpp .c .o
.cpp.o:
$(C++) -c -o $*.o $(DEFINES) $(C++FLAGS) $*.cpp
.c.o:
$(CC) -c -o $*.o $(DEFINES) $(CCFLAGS) $*.c