Commit f01d1104 authored by Mark Frohnmayer's avatar Mark Frohnmayer
Browse files

Added the Makefile

parent b2ac8c66
Loading
Loading
Loading
Loading
+27 −31
Original line number Diff line number Diff line
#############################################################################
# Makefile for building: tnl2_test.app/Contents/MacOS/tnl2_test
# Generated by qmake (2.01a) (Qt 4.6.2) on: Fri Mar 5 15:55:23 2010
# Generated by qmake (2.01a) (Qt 4.6.2) on: Thu Mar 11 17:00:50 2010
# Project:  tnl2_test.pro
# Template: app
# Command: /usr/bin/qmake -spec /usr/local/Qt4.6/mkspecs/macx-g++ -macx -o Makefile tnl2_test.pro
@@ -13,10 +13,10 @@ CXX = g++
DEFINES       = -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS        = -pipe -g -gdwarf-2 -arch i386 -Wall -W $(DEFINES)
CXXFLAGS      = -pipe -g -gdwarf-2 -arch i386 -Wall -W $(DEFINES)
INCPATH       = -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/Library/Frameworks/QtOpenGL.framework/Versions/4/Headers -I/usr/include/QtOpenGL -I/usr/include -I../tnl2 -I../../torque_sockets/platform_library -I../../torque_sockets/lib/libtomcrypt/src/headers -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I. -I. -F/Library/Frameworks
INCPATH       = -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/Library/Frameworks/QtOpenGL.framework/Versions/4/Headers -I/usr/include/QtOpenGL -I/usr/include -I../tnl2 -I../../torque_sockets/platform_library -I../../torque_sockets/lib/libtomcrypt/src/headers -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I. -F/Library/Frameworks
LINK          = g++
LFLAGS        = -headerpad_max_install_names -arch i386
LIBS          = $(SUBLIBS) -F/Library/Frameworks -L/Library/Frameworks -L../../torque_sockets/lib/libtomcrypt -ltomcrypt -framework QtOpenGL -framework QtGui -framework QtCore -framework OpenGL -framework AGL 
LIBS          = $(SUBLIBS) -F/Library/Frameworks -L/Library/Frameworks -L../../torque_sockets/lib/libtomcrypt -L../../torque_sockets/lib/libtommath -ltomcrypt -ltommath -framework CoreServices -framework QtOpenGL -framework QtGui -framework QtCore -framework OpenGL -framework AGL 
AR            = ar cq
RANLIB        = ranlib -s
QMAKE         = /usr/bin/qmake
@@ -45,16 +45,16 @@ OBJECTS_DIR = ./
####### Files

SOURCES       = main.cpp \
		mainwindow.cpp \
		tnl2_test_widget.cpp \
		test_game.cpp moc_mainwindow.cpp \
		moc_tnl2_test_widget.cpp
		test_game.cpp \
		window.cpp moc_tnl2_test_widget.cpp \
		moc_window.cpp
OBJECTS       = main.o \
		mainwindow.o \
		tnl2_test_widget.o \
		test_game.o \
		moc_mainwindow.o \
		moc_tnl2_test_widget.o
		window.o \
		moc_tnl2_test_widget.o \
		moc_window.o
DIST          = /usr/local/Qt4.6/mkspecs/common/unix.conf \
		/usr/local/Qt4.6/mkspecs/common/mac.conf \
		/usr/local/Qt4.6/mkspecs/common/mac-g++.conf \
@@ -121,7 +121,7 @@ first: all

all: Makefile tnl2_test.app/Contents/PkgInfo tnl2_test.app/Contents/Resources/empty.lproj tnl2_test.app/Contents/Info.plist $(TARGET)

$(TARGET): ui_mainwindow.h $(OBJECTS)  
$(TARGET):  $(OBJECTS)  
	@$(CHK_DIR_EXISTS) tnl2_test.app/Contents/MacOS/ || $(MKDIR) tnl2_test.app/Contents/MacOS/ 
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)

@@ -203,7 +203,7 @@ tnl2_test.app/Contents/Info.plist:
	@sed -e "s,@ICON@,,g" -e "s,@EXECUTABLE@,tnl2_test,g" -e "s,@TYPEINFO@,????,g" /usr/local/Qt4.6/mkspecs/macx-g++/Info.plist.app >tnl2_test.app/Contents/Info.plist
dist: 
	@$(CHK_DIR_EXISTS) .tmp/tnl2_test1.0.0 || $(MKDIR) .tmp/tnl2_test1.0.0 
	$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/tnl2_test1.0.0/ && $(COPY_FILE) --parents mainwindow.h tnl2_test_widget.h test_player.h test_net_interface.h test_game.h test_connection.h test_building.h .tmp/tnl2_test1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp tnl2_test_widget.cpp test_game.cpp .tmp/tnl2_test1.0.0/ && $(COPY_FILE) --parents mainwindow.ui .tmp/tnl2_test1.0.0/ && (cd `dirname .tmp/tnl2_test1.0.0` && $(TAR) tnl2_test1.0.0.tar tnl2_test1.0.0 && $(COMPRESS) tnl2_test1.0.0.tar) && $(MOVE) `dirname .tmp/tnl2_test1.0.0`/tnl2_test1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/tnl2_test1.0.0
	$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/tnl2_test1.0.0/ && $(COPY_FILE) --parents tnl2_test_widget.h test_player.h test_net_interface.h test_game.h test_connection.h test_building.h ../../torque_sockets/platform_library/core/zone_allocator.h ../../torque_sockets/platform_library/core/utils.h ../../torque_sockets/platform_library/core/type_record.h ../../torque_sockets/platform_library/core/type_database.h ../../torque_sockets/platform_library/core/thread_queue.h ../../torque_sockets/platform_library/core/thread.h ../../torque_sockets/platform_library/core/string.h ../../torque_sockets/platform_library/core/static_to_indexed_string_map.h ../../torque_sockets/platform_library/core/small_block_allocator.h ../../torque_sockets/platform_library/core/ref_object.h ../../torque_sockets/platform_library/core/power_two_functions.h ../../torque_sockets/platform_library/core/page_allocator.h ../../torque_sockets/platform_library/core/memory_functions.h ../../torque_sockets/platform_library/core/log.h ../../torque_sockets/platform_library/core/indexed_string.h ../../torque_sockets/platform_library/core/hash_table_flat.h ../../torque_sockets/platform_library/core/hash_table_array.h ../../torque_sockets/platform_library/core/hash.h ../../torque_sockets/platform_library/core/functor.h ../../torque_sockets/platform_library/core/function_record.h ../../torque_sockets/platform_library/core/formatted_string_buffer.h ../../torque_sockets/platform_library/core/dictionary.h ../../torque_sockets/platform_library/core/cpu_endian.h ../../torque_sockets/platform_library/core/core.h ../../torque_sockets/platform_library/core/context.h ../../torque_sockets/platform_library/core/construct.h ../../torque_sockets/platform_library/core/byte_stream_fixed.h ../../torque_sockets/platform_library/core/byte_buffer.h ../../torque_sockets/platform_library/core/bit_stream.h ../../torque_sockets/platform_library/core/base_types.h ../../torque_sockets/platform_library/core/base_type_traits.h ../../torque_sockets/platform_library/core/base_type_io.h ../../torque_sockets/platform_library/core/base_type_declarations.h ../../torque_sockets/platform_library/core/assert.h ../../torque_sockets/platform_library/core/array.h ../../torque_sockets/platform_library/core/algorithm_templates.h ../../torque_sockets/platform_library/net/udp_socket.h ../../torque_sockets/platform_library/net/time.h ../../torque_sockets/platform_library/net/symmetric_cipher.h ../../torque_sockets/platform_library/net/sockets.h ../../torque_sockets/platform_library/net/random_generator.h ../../torque_sockets/platform_library/net/packet_stream.h ../../torque_sockets/platform_library/net/nonce.h ../../torque_sockets/platform_library/net/net.h ../../torque_sockets/platform_library/net/interface.h ../../torque_sockets/platform_library/net/connection.h ../../torque_sockets/platform_library/net/client_puzzle.h ../../torque_sockets/platform_library/net/buffer_utils.h ../../torque_sockets/platform_library/net/asymmetric_key.h ../../torque_sockets/platform_library/net/address.h ../../torque_sockets/platform_library/platform/system_includes_win32.h ../../torque_sockets/platform_library/platform/system_includes_mac_osx.h ../../torque_sockets/platform_library/platform/system_includes_linux.h ../../torque_sockets/platform_library/platform/platform.h ../../torque_sockets/platform_library/torque_sockets_implementation.h ../tnl2/tnl2.h ../tnl2/net_object.h ../tnl2/net_interface.h ../tnl2/net_connection.h ../tnl2/ghost_connection.h ../tnl2/exceptions.h ../tnl2/event_connection.h window.h .tmp/tnl2_test1.0.0/ && $(COPY_FILE) --parents main.cpp tnl2_test_widget.cpp test_game.cpp window.cpp .tmp/tnl2_test1.0.0/ && (cd `dirname .tmp/tnl2_test1.0.0` && $(TAR) tnl2_test1.0.0.tar tnl2_test1.0.0 && $(COMPRESS) tnl2_test1.0.0.tar) && $(MOVE) `dirname .tmp/tnl2_test1.0.0`/tnl2_test1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/tnl2_test1.0.0


clean:compiler_clean 
@@ -224,15 +224,16 @@ mocables: compiler_moc_header_make_all compiler_moc_source_make_all

compiler_objective_c_make_all:
compiler_objective_c_clean:
compiler_moc_header_make_all: moc_mainwindow.cpp moc_tnl2_test_widget.cpp
compiler_moc_header_make_all: moc_tnl2_test_widget.cpp moc_window.cpp
compiler_moc_header_clean:
	-$(DEL_FILE) moc_mainwindow.cpp moc_tnl2_test_widget.cpp
moc_mainwindow.cpp: mainwindow.h
	/Developer/Tools/Qt/moc $(DEFINES) $(INCPATH) -D__APPLE__ -D__GNUC__ mainwindow.h -o moc_mainwindow.cpp

	-$(DEL_FILE) moc_tnl2_test_widget.cpp moc_window.cpp
moc_tnl2_test_widget.cpp: tnl2_test_widget.h
	/Developer/Tools/Qt/moc $(DEFINES) $(INCPATH) -D__APPLE__ -D__GNUC__ tnl2_test_widget.h -o moc_tnl2_test_widget.cpp

moc_window.cpp: tnl2_test_widget.h \
		window.h
	/Developer/Tools/Qt/moc $(DEFINES) $(INCPATH) -D__APPLE__ -D__GNUC__ window.h -o moc_window.cpp

compiler_rcc_make_all:
compiler_rcc_clean:
compiler_image_collection_make_all: qmake_image_collection.cpp
@@ -242,30 +243,21 @@ compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_rez_source_make_all:
compiler_rez_source_clean:
compiler_uic_make_all: ui_mainwindow.h
compiler_uic_make_all:
compiler_uic_clean:
	-$(DEL_FILE) ui_mainwindow.h
ui_mainwindow.h: mainwindow.ui \
		tnl2_test_widget.h
	/Developer/Tools/Qt/uic mainwindow.ui -o ui_mainwindow.h

compiler_yacc_decl_make_all:
compiler_yacc_decl_clean:
compiler_yacc_impl_make_all:
compiler_yacc_impl_clean:
compiler_lex_make_all:
compiler_lex_clean:
compiler_clean: compiler_moc_header_clean compiler_uic_clean 
compiler_clean: compiler_moc_header_clean 

####### Compile

main.o: main.cpp mainwindow.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp

mainwindow.o: mainwindow.cpp mainwindow.h \
		ui_mainwindow.h \
main.o: main.cpp window.h \
		tnl2_test_widget.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp

tnl2_test_widget.o: tnl2_test_widget.cpp tnl2_test_widget.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tnl2_test_widget.o tnl2_test_widget.cpp
@@ -277,12 +269,16 @@ test_game.o: test_game.cpp test_player.h \
		test_net_interface.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o test_game.o test_game.cpp

moc_mainwindow.o: moc_mainwindow.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
window.o: window.cpp window.h \
		tnl2_test_widget.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o window.o window.cpp

moc_tnl2_test_widget.o: moc_tnl2_test_widget.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_tnl2_test_widget.o moc_tnl2_test_widget.cpp

moc_window.o: moc_window.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_window.o moc_window.cpp

####### Install

install:   FORCE