jat@google.com | 134be54 | 2009-08-03 15:30:11 +0000 | [diff] [blame] | 1 | # Copyright 2009 Google Inc. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 | # use this file except in compliance with the License. You may obtain a copy of |
| 5 | # the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations under |
| 13 | # the License. |
| 14 | |
| 15 | include ../config.mk |
| 16 | |
| 17 | HDRS= HostChannel.h InvokeMessage.h LoadModuleMessage.h Message.h \ |
| 18 | ReturnMessage.h Value.h BrowserChannel.h Debug.h DebugLevel.h \ |
| 19 | SessionHandler.h ServerMethods.h Socket.h AllowedConnections.h \ |
| 20 | LoadJsniMessage.h InvokeSpecialMessage.h FreeValueMessage.h \ |
jat@google.com | 5e86cbd | 2009-08-22 23:59:24 +0000 | [diff] [blame] | 21 | ByteOrder.h FatalErrorMessage.h CheckVersionsMessage.h \ |
| 22 | ChooseTransportMessage.h SwitchTransportMessage.h \ |
| 23 | ProtocolVersionMessage.h |
jat@google.com | 134be54 | 2009-08-03 15:30:11 +0000 | [diff] [blame] | 24 | |
| 25 | SRCS= HostChannel.cpp LoadModuleMessage.cpp InvokeMessage.cpp \ |
| 26 | ReturnMessage.cpp ServerMethods.cpp Debug.cpp Socket.cpp \ |
| 27 | AllowedConnections.cpp LoadJsniMessage.cpp InvokeSpecialMessage.cpp \ |
jat@google.com | 5e86cbd | 2009-08-22 23:59:24 +0000 | [diff] [blame] | 28 | FreeValueMessage.cpp FatalErrorMessage.cpp CheckVersionsMessage.cpp \ |
| 29 | ChooseTransportMessage.cpp SwitchTransportMessage.cpp \ |
| 30 | ProtocolVersionMessage.cpp |
jat@google.com | 134be54 | 2009-08-03 15:30:11 +0000 | [diff] [blame] | 31 | |
| 32 | LIBCOMMON= libcommon$(FLAG32BIT).a |
| 33 | OBJDIR= obj$(FLAG32BIT) |
| 34 | OBJS= $(patsubst %.cpp,$(OBJDIR)/%.o,$(SRCS)) |
| 35 | |
| 36 | all:: $(OBJDIR) $(LIBCOMMON) |
| 37 | |
| 38 | $(OBJDIR): |
| 39 | -mkdir $@ |
| 40 | |
| 41 | $(LIBCOMMON): $(OBJS) |
| 42 | $(AR) $(ARFLAGS) $@ $(OBJS) |
| 43 | |
| 44 | $(OBJDIR)/%.o: %.cpp |
jat@google.com | 2318196 | 2009-09-03 22:22:56 +0000 | [diff] [blame] | 45 | $(CXX) $(BASECFLAGS) $(ALLARCHCFLAGS) -c $< -o $@ |
| 46 | |
| 47 | $(OBJDIR)/%.o: DebugLevel.h |
jat@google.com | 134be54 | 2009-08-03 15:30:11 +0000 | [diff] [blame] | 48 | |
| 49 | .PHONY: clean depend testdebug |
| 50 | |
| 51 | testdebug: |
| 52 | (cd testing; CXX=$(CXX) CXXFLAGS="$(CFLAGS) -m32" ./testdebug) |
| 53 | (cd testing; CXX=$(CXX) CXXFLAGS="$(CFLAGS) -m64" ./testdebug) |
| 54 | |
| 55 | clean: |
| 56 | rm -rf obj32 obj64 libcommon32.a libcommon64.a |
| 57 | |
| 58 | depend: |
| 59 | g++ -MM $(CFLAGS) $(SRCS) >>Makefile |
| 60 | # makedepend -- $(CFLAGS) -- $(SRCS) |
| 61 | |
| 62 | # DO NOT DELETE |
| 63 | HostChannel.o: HostChannel.cpp Debug.h Platform.h DebugLevel.h \ |
jat@google.com | 5e86cbd | 2009-08-22 23:59:24 +0000 | [diff] [blame] | 64 | ByteOrder.h CheckVersionsMessage.h Message.h BrowserChannel.h Value.h \ |
| 65 | ProtocolVersionMessage.h ChooseTransportMessage.h \ |
| 66 | SwitchTransportMessage.h FreeValueMessage.h HostChannel.h Socket.h \ |
| 67 | AllowedConnections.h ReturnMessage.h SessionHandler.h LoadJsniMessage.h \ |
| 68 | InvokeMessage.h InvokeSpecialMessage.h QuitMessage.h \ |
jat@google.com | 134be54 | 2009-08-03 15:30:11 +0000 | [diff] [blame] | 69 | scoped_ptr/scoped_ptr.h |
| 70 | LoadModuleMessage.o: LoadModuleMessage.cpp Debug.h Platform.h \ |
| 71 | DebugLevel.h LoadModuleMessage.h Message.h BrowserChannel.h \ |
| 72 | HostChannel.h ByteOrder.h Socket.h AllowedConnections.h ReturnMessage.h \ |
| 73 | Value.h SessionHandler.h scoped_ptr/scoped_ptr.h |
| 74 | InvokeMessage.o: InvokeMessage.cpp InvokeMessage.h Message.h \ |
| 75 | BrowserChannel.h Value.h Debug.h Platform.h DebugLevel.h HostChannel.h \ |
| 76 | ByteOrder.h Socket.h AllowedConnections.h ReturnMessage.h \ |
| 77 | SessionHandler.h scoped_ptr/scoped_ptr.h |
| 78 | ReturnMessage.o: ReturnMessage.cpp ReturnMessage.h Message.h \ |
| 79 | BrowserChannel.h Value.h Debug.h Platform.h DebugLevel.h HostChannel.h \ |
| 80 | ByteOrder.h Socket.h AllowedConnections.h SessionHandler.h |
| 81 | ServerMethods.o: ServerMethods.cpp Debug.h Platform.h DebugLevel.h \ |
| 82 | FreeValueMessage.h Message.h BrowserChannel.h HostChannel.h ByteOrder.h \ |
| 83 | Socket.h AllowedConnections.h ReturnMessage.h Value.h SessionHandler.h \ |
| 84 | InvokeMessage.h InvokeSpecialMessage.h ServerMethods.h \ |
| 85 | scoped_ptr/scoped_ptr.h |
| 86 | Debug.o: Debug.cpp Debug.h Platform.h DebugLevel.h |
| 87 | Socket.o: Socket.cpp Platform.h Socket.h Debug.h DebugLevel.h |
| 88 | AllowedConnections.o: AllowedConnections.cpp Debug.h Platform.h \ |
| 89 | DebugLevel.h AllowedConnections.h |
| 90 | LoadJsniMessage.o: LoadJsniMessage.cpp LoadJsniMessage.h Message.h \ |
| 91 | BrowserChannel.h HostChannel.h Debug.h Platform.h DebugLevel.h \ |
| 92 | ByteOrder.h Socket.h AllowedConnections.h ReturnMessage.h Value.h \ |
| 93 | SessionHandler.h |
| 94 | InvokeSpecialMessage.o: InvokeSpecialMessage.cpp InvokeSpecialMessage.h \ |
| 95 | Message.h BrowserChannel.h SessionHandler.h Value.h Debug.h Platform.h \ |
| 96 | DebugLevel.h HostChannel.h ByteOrder.h Socket.h AllowedConnections.h \ |
| 97 | ReturnMessage.h scoped_ptr/scoped_ptr.h |
| 98 | FreeValueMessage.o: FreeValueMessage.cpp FreeValueMessage.h Message.h \ |
| 99 | BrowserChannel.h HostChannel.h Debug.h Platform.h DebugLevel.h \ |
| 100 | ByteOrder.h Socket.h AllowedConnections.h ReturnMessage.h Value.h \ |
| 101 | SessionHandler.h scoped_ptr/scoped_ptr.h |
jat@google.com | 5e86cbd | 2009-08-22 23:59:24 +0000 | [diff] [blame] | 102 | FatalErrorMessage.o: FatalErrorMessage.cpp FatalErrorMessage.h Message.h \ |
| 103 | BrowserChannel.h Value.h Debug.h Platform.h DebugLevel.h HostChannel.h \ |
| 104 | ByteOrder.h Socket.h AllowedConnections.h ReturnMessage.h \ |
| 105 | SessionHandler.h scoped_ptr/scoped_ptr.h |
| 106 | CheckVersionsMessage.o: CheckVersionsMessage.cpp CheckVersionsMessage.h \ |
| 107 | Message.h BrowserChannel.h Value.h Debug.h Platform.h DebugLevel.h \ |
| 108 | HostChannel.h ByteOrder.h Socket.h AllowedConnections.h ReturnMessage.h \ |
| 109 | SessionHandler.h scoped_ptr/scoped_ptr.h |
| 110 | ChooseTransportMessage.o: ChooseTransportMessage.cpp \ |
| 111 | ChooseTransportMessage.h Message.h BrowserChannel.h Value.h Debug.h \ |
| 112 | Platform.h DebugLevel.h HostChannel.h ByteOrder.h Socket.h \ |
| 113 | AllowedConnections.h ReturnMessage.h SessionHandler.h \ |
| 114 | scoped_ptr/scoped_ptr.h |
| 115 | SwitchTransportMessage.o: SwitchTransportMessage.cpp \ |
| 116 | SwitchTransportMessage.h Message.h BrowserChannel.h Value.h Debug.h \ |
| 117 | Platform.h DebugLevel.h HostChannel.h ByteOrder.h Socket.h \ |
| 118 | AllowedConnections.h ReturnMessage.h SessionHandler.h \ |
| 119 | scoped_ptr/scoped_ptr.h |
| 120 | ProtocolVersionMessage.o: ProtocolVersionMessage.cpp \ |
| 121 | ProtocolVersionMessage.h Message.h BrowserChannel.h Value.h Debug.h \ |
| 122 | Platform.h DebugLevel.h HostChannel.h ByteOrder.h Socket.h \ |
| 123 | AllowedConnections.h ReturnMessage.h SessionHandler.h \ |
| 124 | scoped_ptr/scoped_ptr.h |