author | mickeyl <mickeyl> | 2004-08-25 12:15:50 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-08-25 12:15:50 (UTC) |
commit | a4c678976a3e3fd5afec1a9595a1a80ed621a5e2 (patch) (unidiff) | |
tree | e92cd8cc9b21e5efe21579fae2c434770106309f /noncore/apps/opie-reader/CHM.mak | |
parent | 6e4b80e6ec07587e69ad8a374431097d484079e8 (diff) | |
download | opie-a4c678976a3e3fd5afec1a9595a1a80ed621a5e2.zip opie-a4c678976a3e3fd5afec1a9595a1a80ed621a5e2.tar.gz opie-a4c678976a3e3fd5afec1a9595a1a80ed621a5e2.tar.bz2 |
- remove bogus mak and pro files
- fix build order
- fix binary name
- add bogus include files
Diffstat (limited to 'noncore/apps/opie-reader/CHM.mak') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/CHM.mak | 177 |
1 files changed, 0 insertions, 177 deletions
diff --git a/noncore/apps/opie-reader/CHM.mak b/noncore/apps/opie-reader/CHM.mak deleted file mode 100644 index e14db5b..0000000 --- a/noncore/apps/opie-reader/CHM.mak +++ b/dev/null | |||
@@ -1,177 +0,0 @@ | |||
1 | ############################################################################# | ||
2 | # Makefile for building: libCHM.so.1.0.0 | ||
3 | # Generated by qmake (1.06c) (Qt 3.2.3) on: Sun Jul 25 08:37:00 2004 | ||
4 | # Project: CHM.pro | ||
5 | # Template: lib | ||
6 | # Command: $(QMAKE) -o CHM.mak CHM.pro | ||
7 | ############################################################################# | ||
8 | |||
9 | ####### Compiler, tools and options | ||
10 | |||
11 | CC = gcc | ||
12 | CXX = g++ | ||
13 | LEX = flex | ||
14 | YACC = yacc | ||
15 | CFLAGS = -pipe -w -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT | ||
16 | CXXFLAGS = -pipe -w -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT | ||
17 | LEXFLAGS = | ||
18 | YACCFLAGS= -d | ||
19 | INCPATH = -I/usr/lib/qt3/mkspecs/default -I. -IQREADERINC -I$(QTDIR)/include -IQREADERMOCS/ | ||
20 | LINK = g++ | ||
21 | LFLAGS = -shared -Wl,-soname,libCHM.so.1 | ||
22 | LIBS = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -L$(READERDIR)/lib -lreader_codec -lqt-mt -lXext -lX11 -lm -lpthread | ||
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) | ||
32 | COPY_DIR = $(COPY) -r | ||
33 | DEL_FILE = rm -f | ||
34 | SYMLINK = ln -sf | ||
35 | DEL_DIR = rmdir | ||
36 | MOVE = mv -f | ||
37 | CHK_DIR_EXISTS= test -d | ||
38 | MKDIR = mkdir -p | ||
39 | |||
40 | ####### Output directory | ||
41 | |||
42 | OBJECTS_DIR = QREADEROBJS/ | ||
43 | |||
44 | ####### Files | ||
45 | |||
46 | HEADERS = CHM.h \ | ||
47 | chm_lib.h \ | ||
48 | lzx.h | ||
49 | SOURCES = CHM.cpp \ | ||
50 | chm_lib.c \ | ||
51 | lzx.c | ||
52 | OBJECTS = QREADEROBJS/CHM.o \ | ||
53 | QREADEROBJS/chm_lib.o \ | ||
54 | QREADEROBJS/lzx.o | ||
55 | FORMS = | ||
56 | UICDECLS = | ||
57 | UICIMPLS = | ||
58 | SRCMOC = | ||
59 | OBJMOC = | ||
60 | DIST = CHM.pro | ||
61 | QMAKE_TARGET = CHM | ||
62 | DESTDIR = $(READERDIR)/codecs/ | ||
63 | TARGET = libCHM.so.1.0.0 | ||
64 | TARGETA= $(READERDIR)/codecs/libCHM.a | ||
65 | TARGETD= libCHM.so.1.0.0 | ||
66 | TARGET0= libCHM.so | ||
67 | TARGET1= libCHM.so.1 | ||
68 | TARGET2= libCHM.so.1.0 | ||
69 | |||
70 | first: all | ||
71 | ####### Implicit rules | ||
72 | |||
73 | .SUFFIXES: .c .o .cpp .cc .cxx .C | ||
74 | |||
75 | .cpp.o: | ||
76 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
77 | |||
78 | .cc.o: | ||
79 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
80 | |||
81 | .cxx.o: | ||
82 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
83 | |||
84 | .C.o: | ||
85 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
86 | |||
87 | .c.o: | ||
88 | $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< | ||
89 | |||
90 | ####### Build rules | ||
91 | |||
92 | all: CHM.mak $(READERDIR)/codecs/$(TARGET) | ||
93 | |||
94 | $(READERDIR)/codecs/$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) $(SUBLIBS) $(OBJCOMP) | ||
95 | test -d $(READERDIR)/codecs/ || mkdir -p $(READERDIR)/codecs/ | ||
96 | -$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) | ||
97 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) $(OBJCOMP) | ||
98 | -ln -s $(TARGET) $(TARGET0) | ||
99 | -ln -s $(TARGET) $(TARGET1) | ||
100 | -ln -s $(TARGET) $(TARGET2) | ||
101 | -$(DEL_FILE) $(READERDIR)/codecs/$(TARGET) | ||
102 | -$(DEL_FILE) $(READERDIR)/codecs/$(TARGET0) | ||
103 | -$(DEL_FILE) $(READERDIR)/codecs/$(TARGET1) | ||
104 | -$(DEL_FILE) $(READERDIR)/codecs/$(TARGET2) | ||
105 | -$(MOVE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) $(READERDIR)/codecs/ | ||
106 | |||
107 | |||
108 | |||
109 | staticlib: $(TARGETA) | ||
110 | |||
111 | $(TARGETA): $(UICDECLS) $(OBJECTS) $(OBJMOC) $(OBJCOMP) | ||
112 | -$(DEL_FILE) $(TARGETA) | ||
113 | $(AR) $(TARGETA) $(OBJECTS) $(OBJMOC) | ||
114 | |||
115 | mocables: $(SRCMOC) | ||
116 | uicables: $(UICDECLS) $(UICIMPLS) | ||
117 | |||
118 | $(MOC): | ||
119 | ( cd $(QTDIR)/src/moc ; $(MAKE) ) | ||
120 | |||
121 | CHM.mak: CHM.pro /usr/lib/qt3/mkspecs/default/qmake.conf | ||
122 | $(QMAKE) -o CHM.mak CHM.pro | ||
123 | qmake: | ||
124 | @$(QMAKE) -o CHM.mak CHM.pro | ||
125 | |||
126 | dist: | ||
127 | @mkdir -p QREADEROBJS/CHM && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) QREADEROBJS/CHM/ && ( cd `dirname QREADEROBJS/CHM` && $(TAR) CHM.tar CHM && $(GZIP) CHM.tar ) && $(MOVE) `dirname QREADEROBJS/CHM`/CHM.tar.gz . && $(DEL_FILE) -r QREADEROBJS/CHM | ||
128 | |||
129 | mocclean: | ||
130 | |||
131 | uiclean: | ||
132 | |||
133 | yaccclean: | ||
134 | lexclean: | ||
135 | clean: | ||
136 | -$(DEL_FILE) $(OBJECTS) | ||
137 | -$(DEL_FILE) *~ core *.core | ||
138 | |||
139 | |||
140 | ####### Sub-libraries | ||
141 | |||
142 | distclean: clean | ||
143 | -$(DEL_FILE) $(READERDIR)/codecs/$(TARGET) $(TARGET) | ||
144 | -$(DEL_FILE) $(READERDIR)/codecs/$(TARGET0) $(READERDIR)/codecs/$(TARGET1) $(READERDIR)/codecs/$(TARGET2) $(TARGETA) | ||
145 | |||
146 | |||
147 | FORCE: | ||
148 | |||
149 | ####### Compile | ||
150 | |||
151 | QREADEROBJS/CHM.o: CHM.cpp CHM.h \ | ||
152 | chm_lib.h \ | ||
153 | QREADERINC/static.h \ | ||
154 | QREADERINC/useqpe.h \ | ||
155 | CExpander.h \ | ||
156 | my_list.h \ | ||
157 | config.h \ | ||
158 | StyleConsts.h \ | ||
159 | Markups.h \ | ||
160 | names.h \ | ||
161 | linktype.h \ | ||
162 | ustring.h | ||
163 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o QREADEROBJS/CHM.o CHM.cpp | ||
164 | |||
165 | QREADEROBJS/chm_lib.o: chm_lib.c chm_lib.h \ | ||
166 | lzx.h | ||
167 | $(CC) -c $(CFLAGS) $(INCPATH) -o QREADEROBJS/chm_lib.o chm_lib.c | ||
168 | |||
169 | QREADEROBJS/lzx.o: lzx.c lzx.h | ||
170 | $(CC) -c $(CFLAGS) $(INCPATH) -o QREADEROBJS/lzx.o lzx.c | ||
171 | |||
172 | ####### Install | ||
173 | |||
174 | install: all | ||
175 | |||
176 | uninstall: | ||
177 | |||