-rw-r--r-- | core/symlinker/Makefile | 160 | ||||
-rw-r--r-- | core/symlinker/config.in | 4 | ||||
-rw-r--r-- | core/symlinker/symlinker.pro | 2 |
3 files changed, 4 insertions, 162 deletions
diff --git a/core/symlinker/Makefile b/core/symlinker/Makefile deleted file mode 100644 index f35292c..0000000 --- a/core/symlinker/Makefile +++ b/dev/null | |||
@@ -1,160 +0,0 @@ | |||
1 | ############################################################################# | ||
2 | # Makefile for building: $(OPIEDIR)/bin/opie-update-symlinks | ||
3 | # Generated by qmake (1.05a) (Qt 3.1.2) on: Tue Mar 16 10:46:29 2004 | ||
4 | # Project: symlinker.pro | ||
5 | # Template: app | ||
6 | # Command: $(QMAKE) -o Makefile symlinker.pro | ||
7 | ############################################################################# | ||
8 | |||
9 | ####### Compiler, tools and options | ||
10 | |||
11 | CC = arm-linux-gcc | ||
12 | CXX = arm-linux-g++ -DQT_QWS_IPAQ | ||
13 | LEX = flex | ||
14 | YACC = yacc | ||
15 | CFLAGS = -pipe $(CFLAGS_EXTRA) -Wall -W $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2) -DUSE_REALTIME_AUDIO_THREAD -DOPIE_NEW_MALLOC -DOPIE_SOUND_FRAGMENT_SHIFT=14 -DOPIE_WE_VERSION=15 -DQT_NO_DEBUG | ||
16 | CXXFLAGS = -pipe $(CFLAGS_EXTRA) -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) -Wall -W $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2) -DUSE_REALTIME_AUDIO_THREAD -DOPIE_NEW_MALLOC -DOPIE_SOUND_FRAGMENT_SHIFT=14 -DOPIE_WE_VERSION=15 -DQT_NO_DEBUG | ||
17 | LEXFLAGS = | ||
18 | YACCFLAGS= -d | ||
19 | INCPATH = -I/opt/arm/opie//mkspecs/qws/linux-ipaq-g++ -I. -I$(OPIEDIR)/include -I$(QTDIR)/include -I.moc/$(PLATFORM)/ | ||
20 | LINK = arm-linux-gcc | ||
21 | LFLAGS = $(LFLAGS_EXTRA) -Wl,-rpath=$(OPIEDIR)/lib | ||
22 | LIBS = $(SUBLIBS) -Wl,-rpath-link,$(OPIEDIR)/lib -L$(OPIEDIR)/lib -Wl,-rpath-link,$(QTDIR)/lib -L$(QTDIR)/lib $(LIBS_EXTRA) -lqpe -lopie -lqte | ||
23 | AR = ar cqs | ||
24 | RANLIB = | ||
25 | MOC = $(QTDIR)/bin/moc | ||
26 | UIC = $(QTDIR)/bin/uic | ||
27 | QMAKE = qmake | ||
28 | TAR = tar -cf | ||
29 | GZIP = gzip -9f | ||
30 | COPY = cp -f | ||
31 | COPY_FILE= $(COPY) -p | ||
32 | COPY_DIR = $(COPY) -pR | ||
33 | DEL_FILE = rm -f | ||
34 | SYMLINK = ln -sf | ||
35 | DEL_DIR = rmdir | ||
36 | MOVE = mv -f | ||
37 | PRO = symlinker.pro | ||
38 | CHK_DIR_EXISTS= test -d | ||
39 | MKDIR = mkdir -p | ||
40 | |||
41 | ####### Output directory | ||
42 | |||
43 | OBJECTS_DIR = .obj/$(PLATFORM)/ | ||
44 | |||
45 | ####### Files | ||
46 | |||
47 | HEADERS = | ||
48 | SOURCES = main.cpp | ||
49 | OBJECTS = .obj/$(PLATFORM)/main.o | ||
50 | FORMS = | ||
51 | UICDECLS = | ||
52 | UICIMPLS = | ||
53 | SRCMOC = | ||
54 | OBJMOC = | ||
55 | DIST = ../../gen.pro \ | ||
56 | ../../include.pro \ | ||
57 | symlinker.pro | ||
58 | QMAKE_TARGET = opie-update-symlinks | ||
59 | DESTDIR = $(OPIEDIR)/bin/ | ||
60 | TARGET = $(OPIEDIR)/bin/opie-update-symlinks | ||
61 | |||
62 | first: all | ||
63 | ####### Implicit rules | ||
64 | |||
65 | .SUFFIXES: .c .cpp .cc .cxx .C | ||
66 | |||
67 | .cpp.o: | ||
68 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
69 | |||
70 | .cc.o: | ||
71 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
72 | |||
73 | .cxx.o: | ||
74 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
75 | |||
76 | .C.o: | ||
77 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
78 | |||
79 | .c.o: | ||
80 | $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< | ||
81 | |||
82 | ####### Build rules | ||
83 | |||
84 | all: Makefile $(TARGET) | ||
85 | |||
86 | $(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) | ||
87 | test -d $(OPIEDIR)/bin/ || mkdir -p $(OPIEDIR)/bin/ | ||
88 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||
89 | |||
90 | mocables: $(SRCMOC) | ||
91 | |||
92 | $(MOC): | ||
93 | ( cd $(QTDIR)/src/moc ; $(MAKE) ) | ||
94 | |||
95 | Makefile: symlinker.pro /opt/arm/opie//mkspecs/qws/linux-ipaq-g++/qmake.conf ../../gen.pro \ | ||
96 | ../../include.pro | ||
97 | $(QMAKE) -o Makefile symlinker.pro | ||
98 | qmake: | ||
99 | @$(QMAKE) -o Makefile symlinker.pro | ||
100 | |||
101 | dist: | ||
102 | @mkdir -p .obj/$(PLATFORM)/opie-update-symlinks && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/$(PLATFORM)/opie-update-symlinks/ && ( cd `dirname .obj/$(PLATFORM)/opie-update-symlinks` && $(TAR) opie-update-symlinks.tar opie-update-symlinks && $(GZIP) opie-update-symlinks.tar ) && $(MOVE) `dirname .obj/$(PLATFORM)/opie-update-symlinks`/opie-update-symlinks.tar.gz . && $(DEL_FILE) -r .obj/$(PLATFORM)/opie-update-symlinks | ||
103 | |||
104 | mocclean: | ||
105 | |||
106 | uiclean: | ||
107 | |||
108 | yaccclean: | ||
109 | lexclean: | ||
110 | clean: | ||
111 | -$(DEL_FILE) $(OBJECTS) | ||
112 | -$(DEL_FILE) *~ core *.core | ||
113 | |||
114 | |||
115 | ####### Sub-libraries | ||
116 | |||
117 | distclean: clean | ||
118 | -$(DEL_FILE) $(OPIEDIR)/bin/$(TARGET) $(TARGET) | ||
119 | |||
120 | |||
121 | lupdate: | ||
122 | lupdate -noobsolete $(PRO) | ||
123 | |||
124 | lrelease: | ||
125 | lrelease $(PRO) | ||
126 | |||
127 | ipk: | ||
128 | tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="" install && ipkg-build ; rm -rf ; ) | ||
129 | |||
130 | opie-lupdate: | ||
131 | opie-lupdate $(PRO) | ||
132 | |||
133 | opie-lrelease: | ||
134 | opie-lrelease $(PRO) | ||
135 | |||
136 | messages: | ||
137 | xgettext -C -n -ktr -kQT_TRANSLATE_NOOP main.cpp -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-tr.po' && xgettext -C -n -a main.cpp -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-allstrings.po' | ||
138 | |||
139 | FORCE: | ||
140 | |||
141 | ####### Compile | ||
142 | |||
143 | .obj/$(PLATFORM)/main.o: main.cpp | ||
144 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/main.o main.cpp | ||
145 | |||
146 | ####### Install | ||
147 | |||
148 | install_target: | ||
149 | @$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)$(OPIEDIR)/bin/" || $(MKDIR) "$(INSTALL_ROOT)$(OPIEDIR)/bin/" | ||
150 | -$(COPY) "$(OPIEDIR)/bin/$(QMAKE_TARGET)" "$(INSTALL_ROOT)$(OPIEDIR)/bin/$(QMAKE_TARGET)" | ||
151 | |||
152 | uninstall_target: | ||
153 | -$(DEL_FILE) "$(INSTALL_ROOT)$(OPIEDIR)/bin/$(QMAKE_TARGET)" | ||
154 | -$(DEL_DIR) "$(INSTALL_ROOT)$(OPIEDIR)/bin/" | ||
155 | |||
156 | |||
157 | install: all install_target | ||
158 | |||
159 | uninstall: uninstall_target | ||
160 | |||
diff --git a/core/symlinker/config.in b/core/symlinker/config.in index b68018f..f87778a 100644 --- a/core/symlinker/config.in +++ b/core/symlinker/config.in | |||
@@ -3,3 +3,5 @@ | |||
3 | default "y" | 3 | default "y" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && LAUNCHER | 4 | depends ( LIBQPE || LIBQPE-X11 ) |
5 | comment "Opie Symlinker needs a libqpe" | ||
6 | depends !( LIBQPE || LIBQPE-X11 ) | ||
5 | 7 | ||
diff --git a/core/symlinker/symlinker.pro b/core/symlinker/symlinker.pro index 9558b3e..646c9fd 100644 --- a/core/symlinker/symlinker.pro +++ b/core/symlinker/symlinker.pro | |||
@@ -11,3 +11,3 @@ INCLUDEPATH += $(OPIEDIR)/include | |||
11 | DEPENDPATH += $(OPIEDIR)/include . | 11 | DEPENDPATH += $(OPIEDIR)/include . |
12 | LIBS += -lqpe -lopie | 12 | LIBS += -lqpe |
13 | 13 | ||