-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.target
212 lines (155 loc) · 11.3 KB
/
Makefile.target
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
#############################################################################
# Makefile for building: eer
# Generated by qmake (1.06c-Qtopia) (Qt 3.2.1) on: Thu Sep 15 22:28:22 2022
# Project: eer.pro
# Template: app
# Command: $(QMAKE) -spec qws/linux-arm-g++ -o Makefile.target eer.pro
#############################################################################
####### Compiler, tools and options
CC = arm-linux-gcc
CXX = arm-linux-g++
LEX = flex
YACC = yacc
CFLAGS = -pipe -Wall -W -Os -DQT_NO_QWS_VFB -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"eer\" -DQTOPIA_TRTARGET=\"eer\" -DQT_NO_DEBUG
CXXFLAGS = -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQT_NO_QWS_VFB -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"eer\" -DQTOPIA_TRTARGET=\"eer\" -DQT_NO_DEBUG
LEXFLAGS =
YACCFLAGS= -d
INCPATH = -I/opt/FriendlyARM/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs/qws/linux-arm-g++ -I. -I../../FriendlyARM/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/include -I../../FriendlyARM/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/ -I.moc/release-shared/
LINK = arm-linux-g++
LFLAGS =
LIBS = $(SUBLIBS) -luuid -lqtopia2 -lqtopia -lqpe -L/opt/FriendlyARM/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/lib -L/opt/FriendlyARM/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/lib -lqte
AR = ar cqs
RANLIB =
MOC = /opt/FriendlyARM/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/moc
UIC = /opt/FriendlyARM/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/uic
QMAKE = qmake
TAR = tar -cf
INSTALL_FILE= $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
GZIP = gzip -9f
COPY = cp -f
COPY_FILE= $(COPY)
COPY_DIR = $(COPY) -R
DEL_FILE = rm -f
SYMLINK = ln -sf
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
####### Output directory
OBJECTS_DIR = .obj/release-shared/
####### Files
TRANSLATABLES =
HEADERS = main_form.h \
24cXX.h
SOURCES = main_form.cpp \
main.cpp \
24cXX.cpp
OBJECTS = .obj/release-shared/main_form.o \
.obj/release-shared/main.o \
.obj/release-shared/24cXX.o \
.obj/release-shared/main_form_base.o
FORMS = main_form_base.ui
UICDECLS = .ui/release-shared/main_form_base.h
UICIMPLS = .ui/release-shared/main_form_base.cpp
SRCMOC = .moc/release-shared/moc_main_form.cpp \
.moc/release-shared/moc_main_form_base.cpp
OBJMOC = .obj/release-shared/moc_main_form.o \
.obj/release-shared/moc_main_form_base.o
DIST = ../../FriendlyARM/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/src/projects.pri \
../../FriendlyARM/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/src/ipk_groups.pri \
eer.pro
QMAKE_TARGET = eer
DESTDIR =
TARGET = eer
first: all
####### Implicit rules
.SUFFIXES: .c .o .cpp .cc .cxx .C
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: Makefile.target $(TARGET)
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) $(OBJCOMP)
mocables: $(SRCMOC)
uicables: $(UICDECLS) $(UICIMPLS)
$(MOC):
( cd $(QTDIR)/src/moc ; $(MAKE) )
Makefile.target: eer.pro /opt/FriendlyARM/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs/qws/linux-arm-g++/qmake.conf ../../FriendlyARM/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/src/projects.pri \
../../FriendlyARM/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/src/ipk_groups.pri
$(QMAKE) -spec qws/linux-arm-g++ -o Makefile.target eer.pro
qmake:
@$(QMAKE) -spec qws/linux-arm-g++ -o Makefile.target eer.pro
dist:
@mkdir -p .obj/release-shared/eer && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/release-shared/eer/ && ( cd `dirname .obj/release-shared/eer` && $(TAR) eer.tar eer && $(GZIP) eer.tar ) && $(MOVE) `dirname .obj/release-shared/eer`/eer.tar.gz . && $(DEL_FILE) -r .obj/release-shared/eer
mocclean:
-$(DEL_FILE) $(OBJMOC)
-$(DEL_FILE) $(SRCMOC)
uiclean:
-$(DEL_FILE) $(UICIMPLS) $(UICDECLS)
yaccclean:
lexclean:
clean: mocclean uiclean
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) $(TARGET) $(TARGET)
unix_mkipk:
@ if [ -e /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/data ]; then echo "ERROR: /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/data exists!"; exit 1; fi; if [ -e /opt/qtopia2_apps/eer/ipkg/qpe-eer__arm.ipk ]; then echo "Package qpe-eer__arm.ipk already exists!"; exit 0; fi; IPK_GROUP_PROJECTS="/opt/qtopia2_apps/eer"; for i in $${IPK_GROUP_PROJECTS};do make -C $$i -f Makefile unix_mkipk_deps INSTALL_ROOT=/opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/data/opt/Qtopia || exit $$?; done; make_ipk_file() { cd /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/data; if [ ! -z "$$1" ]; then lang="$$1"; suffix="_i18n_$$lang"; deps="qpe-eer"; if [ "`echo qpe-eer | cut -c -4`" = "qpe-" -a "qpe-eer" != "qpe-taskbar" ]; then deps="$$deps qpe-taskbar_i18n_$$lang"; fi; path="opt/Qtopia/i18n/$$lang"; if [ ! -d "/opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/data/$$path" ]; then return; fi; else suffix=; deps=`cat /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/DEPS`; deps=`echo $$deps | sort -u`; path="opt/Qtopia"; fi; echo "Package: qpe-eer$$suffix" > /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/control; echo "Maintainer: Unspecified" >> /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/control; echo "License: GPL" >> /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/control; echo "Version: " >> /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/control; echo "Arch: arm" >> /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/control; echo "Architecture: arm" >> /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/control; echo "Description: No description written for this package" >> /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/control; echo -n "Depends: " >> /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/control; echo $$deps >> /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/control; echo -n "Files:" >> /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/control; find $$path -type f -o -type l -printf "/%P " >> /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/control; if [ ! -x "`which mkfs.jffs2`" ]; then echo -e "\nInstalled-Size: $$(du -h -s $$path | awk '{print $$1}')" >> /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/control; else echo -e "\nInstalled-Size: $$(mkfs.jffs2 -r $$path | wc -c)" >> /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/control; fi; echo >> /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/control; for i in preinst prerm postinst postrm;do export FILE_LOC=/opt/qtopia2_apps/eer/qpe-eer.$$i; if [ -e $$FILE_LOC ]; then install -c $$FILE_LOC /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/$$i; fi; done; cd /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer; echo "2.0" > debian-binary; cd /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control; tar --remove-files -cz --owner=0 --group=0 -f /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control.tar.gz ./control; cd /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/data; tar --remove-files -cz --owner=0 --group=0 -f /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/data.tar.gz $$path; if [ ! -e /opt/qtopia2_apps/eer/ipkg ];then mkdir -p /opt/qtopia2_apps/eer/ipkg;fi; cd /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer; tar --remove-files -cz --owner=0 --group=0 -f /opt/qtopia2_apps/eer/ipkg/qpe-eer__arm$$suffix.ipk ./debian-binary ./control.tar.gz ./data.tar.gz `for i in preinst prerm postinst postrm;do if [ -e $$i ]; then echo $$i; fi; done`; }; LANGUAGES="en_US"; for lang in $${LANGUAGES}; do make_ipk_file $$lang; done; [ -d /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/data/opt/Qtopia/i18n ] && rm -r /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/data/opt/Qtopia/i18n; make_ipk_file; rm -rf /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer
unix_mkipk_deps: install
@ mkdir -p /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/data; mkdir -p /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control; echo "qpe-libqtopia2" | sed 's/\( [^(]\)/,\1/g' >> /opt/qtopia2_apps/eer/.packaging-working-dir/ipk/qpe-eer/control/DEPS
remove_target:
-$(DEL_FILE) $(TARGET)
packages: unix_mkipk
sdk: install
devsdk:
relink: remove_target
@ make
lupdate:
@ cd /opt/qtopia2_apps/eer; TRANSFILES=; TRANSLATABLES="$(TRANSLATABLES)"; for transfile in $$TRANSLATABLES; do [ -f $$transfile ] && TRANSFILES="$$TRANSFILES $$transfile"; done; TRANSLATIONS=""; for lang in $$TRANSLATIONS; do /opt/FriendlyARM/arm-qtopia/qtopia-2.2.0-FriendlyARM/dqt/bin/lupdate $$TRANSFILES -ts eer-$$lang.ts; done
FORCE:
####### Compile
.obj/release-shared/main_form.o: main_form.cpp main_form.h \
24cXX.h \
.ui/release-shared/main_form_base.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release-shared/main_form.o main_form.cpp
.obj/release-shared/main.o: main.cpp main_form.h \
../../FriendlyARM/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/include/qtopia/qpeapplication.h \
.ui/release-shared/main_form_base.h \
../../FriendlyARM/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/src/libraries/qtopia/qpeapplication.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release-shared/main.o main.cpp
.obj/release-shared/24cXX.o: 24cXX.cpp 24cXX.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release-shared/24cXX.o 24cXX.cpp
.ui/release-shared/main_form_base.h: main_form_base.ui
$(UIC) main_form_base.ui -o .ui/release-shared/main_form_base.h
.ui/release-shared/main_form_base.cpp: .ui/release-shared/main_form_base.h main_form_base.ui
$(UIC) main_form_base.ui -i main_form_base.h -o .ui/release-shared/main_form_base.cpp
.obj/release-shared/main_form_base.o: .ui/release-shared/main_form_base.cpp .ui/release-shared/main_form_base.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release-shared/main_form_base.o .ui/release-shared/main_form_base.cpp
.obj/release-shared/moc_main_form.o: .moc/release-shared/moc_main_form.cpp main_form.h .ui/release-shared/main_form_base.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release-shared/moc_main_form.o .moc/release-shared/moc_main_form.cpp
.obj/release-shared/moc_main_form_base.o: .moc/release-shared/moc_main_form_base.cpp .ui/release-shared/main_form_base.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/release-shared/moc_main_form_base.o .moc/release-shared/moc_main_form_base.cpp
.moc/release-shared/moc_main_form.cpp: $(MOC) main_form.h
$(MOC) main_form.h -o .moc/release-shared/moc_main_form.cpp
.moc/release-shared/moc_main_form_base.cpp: $(MOC) .ui/release-shared/main_form_base.h
$(MOC) .ui/release-shared/main_form_base.h -o .moc/release-shared/moc_main_form_base.cpp
####### Install
install_target: all
@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/bin/" || $(MKDIR) "$(INSTALL_ROOT)/bin/"
-$(INSTALL_FILE) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/bin/$(QMAKE_TARGET)"
-arm-linux-strip "$(INSTALL_ROOT)/bin/$(QMAKE_TARGET)"
uninstall_target:
-$(DEL_FILE) "$(INSTALL_ROOT)/bin/$(QMAKE_TARGET)"
-$(DEL_DIR) "$(INSTALL_ROOT)/bin/"
install: install_target
uninstall: uninstall_target