Skip to content

Commit fc5447a

Browse files
author
unknown
committed
New tetris
1 parent e09d458 commit fc5447a

37 files changed

+38184
-0
lines changed

Makefile

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
#############################################################################
2+
# Makefile for building: tetris
3+
# Generated by qmake (2.01a) (Qt 4.8.4) on: ?? 7? 12 22:56:32 2016
4+
# Project: tetris.pro
5+
# Template: app
6+
# Command: c:\Qt\4.8.4\bin\qmake.exe -spec c:\Qt\4.8.4\mkspecs\win32-g++ CONFIG+=release -o Makefile tetris.pro
7+
#############################################################################
8+
9+
first: release
10+
install: release-install
11+
uninstall: release-uninstall
12+
MAKEFILE = Makefile
13+
QMAKE = c:\Qt\4.8.4\bin\qmake.exe
14+
DEL_FILE = del
15+
CHK_DIR_EXISTS= if not exist
16+
MKDIR = mkdir
17+
COPY = copy /y
18+
COPY_FILE = $(COPY)
19+
COPY_DIR = xcopy /s /q /y /i
20+
INSTALL_FILE = $(COPY_FILE)
21+
INSTALL_PROGRAM = $(COPY_FILE)
22+
INSTALL_DIR = $(COPY_DIR)
23+
DEL_FILE = del
24+
SYMLINK =
25+
DEL_DIR = rmdir
26+
MOVE = move
27+
CHK_DIR_EXISTS= if not exist
28+
MKDIR = mkdir
29+
SUBTARGETS = \
30+
release \
31+
debug
32+
33+
release: $(MAKEFILE).Release FORCE
34+
$(MAKE) -f $(MAKEFILE).Release
35+
release-make_default: $(MAKEFILE).Release FORCE
36+
$(MAKE) -f $(MAKEFILE).Release
37+
release-make_first: $(MAKEFILE).Release FORCE
38+
$(MAKE) -f $(MAKEFILE).Release first
39+
release-all: $(MAKEFILE).Release FORCE
40+
$(MAKE) -f $(MAKEFILE).Release all
41+
release-clean: $(MAKEFILE).Release FORCE
42+
$(MAKE) -f $(MAKEFILE).Release clean
43+
release-distclean: $(MAKEFILE).Release FORCE
44+
$(MAKE) -f $(MAKEFILE).Release distclean
45+
release-install: $(MAKEFILE).Release FORCE
46+
$(MAKE) -f $(MAKEFILE).Release install
47+
release-uninstall: $(MAKEFILE).Release FORCE
48+
$(MAKE) -f $(MAKEFILE).Release uninstall
49+
debug: $(MAKEFILE).Debug FORCE
50+
$(MAKE) -f $(MAKEFILE).Debug
51+
debug-make_default: $(MAKEFILE).Debug FORCE
52+
$(MAKE) -f $(MAKEFILE).Debug
53+
debug-make_first: $(MAKEFILE).Debug FORCE
54+
$(MAKE) -f $(MAKEFILE).Debug first
55+
debug-all: $(MAKEFILE).Debug FORCE
56+
$(MAKE) -f $(MAKEFILE).Debug all
57+
debug-clean: $(MAKEFILE).Debug FORCE
58+
$(MAKE) -f $(MAKEFILE).Debug clean
59+
debug-distclean: $(MAKEFILE).Debug FORCE
60+
$(MAKE) -f $(MAKEFILE).Debug distclean
61+
debug-install: $(MAKEFILE).Debug FORCE
62+
$(MAKE) -f $(MAKEFILE).Debug install
63+
debug-uninstall: $(MAKEFILE).Debug FORCE
64+
$(MAKE) -f $(MAKEFILE).Debug uninstall
65+
66+
Makefile: tetris.pro c:/Qt/4.8.4/mkspecs/win32-g++/qmake.conf c:/Qt/4.8.4/mkspecs/features/device_config.prf \
67+
c:/Qt/4.8.4/mkspecs/qconfig.pri \
68+
c:/Qt/4.8.4/mkspecs/modules/qt_webkit_version.pri \
69+
c:/Qt/4.8.4/mkspecs/features/qt_functions.prf \
70+
c:/Qt/4.8.4/mkspecs/features/qt_config.prf \
71+
c:/Qt/4.8.4/mkspecs/features/exclusive_builds.prf \
72+
c:/Qt/4.8.4/mkspecs/features/default_pre.prf \
73+
c:/Qt/4.8.4/mkspecs/features/win32/default_pre.prf \
74+
c:/Qt/4.8.4/mkspecs/features/release.prf \
75+
c:/Qt/4.8.4/mkspecs/features/debug_and_release.prf \
76+
c:/Qt/4.8.4/mkspecs/features/default_post.prf \
77+
c:/Qt/4.8.4/mkspecs/features/win32/default_post.prf \
78+
c:/Qt/4.8.4/mkspecs/features/win32/rtti.prf \
79+
c:/Qt/4.8.4/mkspecs/features/win32/exceptions.prf \
80+
c:/Qt/4.8.4/mkspecs/features/win32/stl.prf \
81+
c:/Qt/4.8.4/mkspecs/features/shared.prf \
82+
c:/Qt/4.8.4/mkspecs/features/warn_on.prf \
83+
c:/Qt/4.8.4/mkspecs/features/qt.prf \
84+
c:/Qt/4.8.4/mkspecs/features/win32/thread.prf \
85+
c:/Qt/4.8.4/mkspecs/features/moc.prf \
86+
c:/Qt/4.8.4/mkspecs/features/win32/windows.prf \
87+
c:/Qt/4.8.4/mkspecs/features/resources.prf \
88+
c:/Qt/4.8.4/mkspecs/features/uic.prf \
89+
c:/Qt/4.8.4/mkspecs/features/yacc.prf \
90+
c:/Qt/4.8.4/mkspecs/features/lex.prf \
91+
c:/Qt/4.8.4/mkspecs/features/include_source_dir.prf \
92+
c:/Qt/4.8.4/lib/qtmain.prl
93+
$(QMAKE) -spec c:\Qt\4.8.4\mkspecs\win32-g++ CONFIG+=release -o Makefile tetris.pro
94+
c:\Qt\4.8.4\mkspecs\features\device_config.prf:
95+
c:\Qt\4.8.4\mkspecs\qconfig.pri:
96+
c:\Qt\4.8.4\mkspecs\modules\qt_webkit_version.pri:
97+
c:\Qt\4.8.4\mkspecs\features\qt_functions.prf:
98+
c:\Qt\4.8.4\mkspecs\features\qt_config.prf:
99+
c:\Qt\4.8.4\mkspecs\features\exclusive_builds.prf:
100+
c:\Qt\4.8.4\mkspecs\features\default_pre.prf:
101+
c:\Qt\4.8.4\mkspecs\features\win32\default_pre.prf:
102+
c:\Qt\4.8.4\mkspecs\features\release.prf:
103+
c:\Qt\4.8.4\mkspecs\features\debug_and_release.prf:
104+
c:\Qt\4.8.4\mkspecs\features\default_post.prf:
105+
c:\Qt\4.8.4\mkspecs\features\win32\default_post.prf:
106+
c:\Qt\4.8.4\mkspecs\features\win32\rtti.prf:
107+
c:\Qt\4.8.4\mkspecs\features\win32\exceptions.prf:
108+
c:\Qt\4.8.4\mkspecs\features\win32\stl.prf:
109+
c:\Qt\4.8.4\mkspecs\features\shared.prf:
110+
c:\Qt\4.8.4\mkspecs\features\warn_on.prf:
111+
c:\Qt\4.8.4\mkspecs\features\qt.prf:
112+
c:\Qt\4.8.4\mkspecs\features\win32\thread.prf:
113+
c:\Qt\4.8.4\mkspecs\features\moc.prf:
114+
c:\Qt\4.8.4\mkspecs\features\win32\windows.prf:
115+
c:\Qt\4.8.4\mkspecs\features\resources.prf:
116+
c:\Qt\4.8.4\mkspecs\features\uic.prf:
117+
c:\Qt\4.8.4\mkspecs\features\yacc.prf:
118+
c:\Qt\4.8.4\mkspecs\features\lex.prf:
119+
c:\Qt\4.8.4\mkspecs\features\include_source_dir.prf:
120+
c:\Qt\4.8.4\lib\qtmain.prl:
121+
qmake: qmake_all FORCE
122+
@$(QMAKE) -spec c:\Qt\4.8.4\mkspecs\win32-g++ CONFIG+=release -o Makefile tetris.pro
123+
124+
qmake_all: FORCE
125+
126+
make_default: release-make_default debug-make_default FORCE
127+
make_first: release-make_first debug-make_first FORCE
128+
all: release-all debug-all FORCE
129+
clean: release-clean debug-clean FORCE
130+
distclean: release-distclean debug-distclean FORCE
131+
-$(DEL_FILE) Makefile
132+
133+
check: first
134+
135+
release-mocclean: $(MAKEFILE).Release
136+
$(MAKE) -f $(MAKEFILE).Release mocclean
137+
debug-mocclean: $(MAKEFILE).Debug
138+
$(MAKE) -f $(MAKEFILE).Debug mocclean
139+
mocclean: release-mocclean debug-mocclean
140+
141+
release-mocables: $(MAKEFILE).Release
142+
$(MAKE) -f $(MAKEFILE).Release mocables
143+
debug-mocables: $(MAKEFILE).Debug
144+
$(MAKE) -f $(MAKEFILE).Debug mocables
145+
mocables: release-mocables debug-mocables
146+
FORCE:
147+
148+
$(MAKEFILE).Release: Makefile
149+
$(MAKEFILE).Debug: Makefile

Makefile.Debug

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
#############################################################################
2+
# Makefile for building: tetris
3+
# Generated by qmake (2.01a) (Qt 4.8.4) on: ?? 7? 12 22:56:32 2016
4+
# Project: tetris.pro
5+
# Template: app
6+
#############################################################################
7+
8+
####### Compiler, tools and options
9+
10+
CC = gcc
11+
CXX = g++
12+
DEFINES = -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
13+
CFLAGS = -pipe -g -Wall -Wextra $(DEFINES)
14+
CXXFLAGS = -pipe -g -frtti -fexceptions -mthreads -Wall -Wextra $(DEFINES)
15+
INCPATH = -I"c:\Qt\4.8.4\include\QtCore" -I"c:\Qt\4.8.4\include\QtGui" -I"c:\Qt\4.8.4\include\phonon" -I"c:\Qt\4.8.4\include" -I"c:\Qt\4.8.4\include\ActiveQt" -I"c:\Qt\4.8.4\include\phonon_compat" -I"debug" -I"c:\Qt\4.8.4\mkspecs\win32-g++"
16+
LINK = g++
17+
LFLAGS = -mthreads -Wl,-subsystem,windows
18+
LIBS = -L"c:\Qt\4.8.4\lib" -lmingw32 -lqtmaind -lphonond4 -lQtGuid4 -lQtCored4
19+
QMAKE = c:\Qt\4.8.4\bin\qmake.exe
20+
IDC = c:\Qt\4.8.4\bin\idc.exe
21+
IDL = midl
22+
ZIP = zip -r -9
23+
DEF_FILE =
24+
RES_FILE =
25+
COPY = copy /y
26+
SED =
27+
COPY_FILE = $(COPY)
28+
COPY_DIR = xcopy /s /q /y /i
29+
DEL_FILE = del
30+
DEL_DIR = rmdir
31+
MOVE = move
32+
CHK_DIR_EXISTS= if not exist
33+
MKDIR = mkdir
34+
INSTALL_FILE = $(COPY_FILE)
35+
INSTALL_PROGRAM = $(COPY_FILE)
36+
INSTALL_DIR = $(COPY_DIR)
37+
38+
####### Output directory
39+
40+
OBJECTS_DIR = debug
41+
42+
####### Files
43+
44+
SOURCES = main.cpp \
45+
box.cpp \
46+
myview.cpp debug\moc_box.cpp \
47+
debug\moc_myview.cpp \
48+
debug\qrc_images.cpp
49+
OBJECTS = debug/main.o \
50+
debug/box.o \
51+
debug/myview.o \
52+
debug/moc_box.o \
53+
debug/moc_myview.o \
54+
debug/qrc_images.o
55+
DIST =
56+
QMAKE_TARGET = tetris
57+
DESTDIR = debug\ #avoid trailing-slash linebreak
58+
TARGET = tetris.exe
59+
DESTDIR_TARGET = debug\tetris.exe
60+
61+
####### Implicit rules
62+
63+
.SUFFIXES: .cpp .cc .cxx .c
64+
65+
.cpp.o:
66+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
67+
68+
.cc.o:
69+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
70+
71+
.cxx.o:
72+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
73+
74+
.c.o:
75+
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
76+
77+
####### Build rules
78+
79+
first: all
80+
all: Makefile.Debug $(DESTDIR_TARGET)
81+
82+
$(DESTDIR_TARGET): $(OBJECTS)
83+
$(LINK) $(LFLAGS) -o $(DESTDIR_TARGET) $(OBJECTS) $(LIBS)
84+
85+
qmake: FORCE
86+
@$(QMAKE) -spec c:\Qt\4.8.4\mkspecs\win32-g++ CONFIG+=release -o Makefile.Debug tetris.pro
87+
88+
dist:
89+
$(ZIP) tetris.zip $(SOURCES) $(DIST) tetris.pro c:\Qt\4.8.4\mkspecs\features\device_config.prf c:\Qt\4.8.4\mkspecs\qconfig.pri c:\Qt\4.8.4\mkspecs\modules\qt_webkit_version.pri c:\Qt\4.8.4\mkspecs\features\qt_functions.prf c:\Qt\4.8.4\mkspecs\features\qt_config.prf c:\Qt\4.8.4\mkspecs\features\exclusive_builds.prf c:\Qt\4.8.4\mkspecs\features\default_pre.prf c:\Qt\4.8.4\mkspecs\features\win32\default_pre.prf c:\Qt\4.8.4\mkspecs\features\debug.prf c:\Qt\4.8.4\mkspecs\features\debug_and_release.prf c:\Qt\4.8.4\mkspecs\features\default_post.prf c:\Qt\4.8.4\mkspecs\features\win32\default_post.prf c:\Qt\4.8.4\mkspecs\features\build_pass.prf c:\Qt\4.8.4\mkspecs\features\win32\rtti.prf c:\Qt\4.8.4\mkspecs\features\win32\exceptions.prf c:\Qt\4.8.4\mkspecs\features\win32\stl.prf c:\Qt\4.8.4\mkspecs\features\shared.prf c:\Qt\4.8.4\mkspecs\features\warn_on.prf c:\Qt\4.8.4\mkspecs\features\qt.prf c:\Qt\4.8.4\mkspecs\features\win32\thread.prf c:\Qt\4.8.4\mkspecs\features\moc.prf c:\Qt\4.8.4\mkspecs\features\win32\windows.prf c:\Qt\4.8.4\mkspecs\features\resources.prf c:\Qt\4.8.4\mkspecs\features\uic.prf c:\Qt\4.8.4\mkspecs\features\yacc.prf c:\Qt\4.8.4\mkspecs\features\lex.prf c:\Qt\4.8.4\mkspecs\features\include_source_dir.prf c:\Qt\4.8.4\lib\qtmaind.prl HEADERS RESOURCES IMAGES SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES
90+
91+
clean: compiler_clean
92+
-$(DEL_FILE) debug\main.o debug\box.o debug\myview.o debug\moc_box.o debug\moc_myview.o debug\qrc_images.o
93+
94+
distclean: clean
95+
-$(DEL_FILE) $(DESTDIR_TARGET)
96+
-$(DEL_FILE) Makefile.Debug
97+
98+
check: first
99+
100+
mocclean: compiler_moc_header_clean compiler_moc_source_clean
101+
102+
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
103+
104+
compiler_moc_header_make_all: debug/moc_box.cpp debug/moc_myview.cpp
105+
compiler_moc_header_clean:
106+
-$(DEL_FILE) debug\moc_box.cpp debug\moc_myview.cpp
107+
debug/moc_box.cpp: box.h
108+
C:\Qt\4.8.4\bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 box.h -o debug\moc_box.cpp
109+
110+
debug/moc_myview.cpp: myview.h
111+
C:\Qt\4.8.4\bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 myview.h -o debug\moc_myview.cpp
112+
113+
compiler_rcc_make_all: debug/qrc_images.cpp
114+
compiler_rcc_clean:
115+
-$(DEL_FILE) debug\qrc_images.cpp
116+
debug/qrc_images.cpp: images.qrc \
117+
images/logo.png \
118+
images/background01.png \
119+
images/background02.png \
120+
images/icon.png \
121+
images/box.gif \
122+
images/background.png
123+
c:\Qt\4.8.4\bin\rcc.exe -name images images.qrc -o debug\qrc_images.cpp
124+
125+
compiler_image_collection_make_all: qmake_image_collection.cpp
126+
compiler_image_collection_clean:
127+
-$(DEL_FILE) qmake_image_collection.cpp
128+
compiler_moc_source_make_all:
129+
compiler_moc_source_clean:
130+
compiler_uic_make_all:
131+
compiler_uic_clean:
132+
compiler_yacc_decl_make_all:
133+
compiler_yacc_decl_clean:
134+
compiler_yacc_impl_make_all:
135+
compiler_yacc_impl_clean:
136+
compiler_lex_make_all:
137+
compiler_lex_clean:
138+
compiler_clean: compiler_moc_header_clean compiler_rcc_clean
139+
140+
141+
142+
####### Compile
143+
144+
debug/main.o: main.cpp myview.h
145+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\main.o main.cpp
146+
147+
debug/box.o: box.cpp box.h
148+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\box.o box.cpp
149+
150+
debug/myview.o: myview.cpp myview.h \
151+
box.h
152+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\myview.o myview.cpp
153+
154+
debug/moc_box.o: debug/moc_box.cpp
155+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\moc_box.o debug\moc_box.cpp
156+
157+
debug/moc_myview.o: debug/moc_myview.cpp
158+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\moc_myview.o debug\moc_myview.cpp
159+
160+
debug/qrc_images.o: debug/qrc_images.cpp
161+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\qrc_images.o debug\qrc_images.cpp
162+
163+
####### Install
164+
165+
install: FORCE
166+
167+
uninstall: FORCE
168+
169+
FORCE:
170+

0 commit comments

Comments
 (0)