Lines 58-64
echo "BITS = " $BITS >> config.h
Link Here
|
58 |
echo " [*] Enabling readline support" |
58 |
echo " [*] Enabling readline support" |
59 |
READLN="1" |
59 |
READLN="1" |
60 |
echo "READLNOPT = -DUSE_READLN" >> config.h |
60 |
echo "READLNOPT = -DUSE_READLN" >> config.h |
61 |
echo "LDREADLNOPT = -lreadline -ltermcap" >> config.h |
61 |
echo "LDREADLNOPT = -lreadline" >> config.h |
62 |
;; |
62 |
;; |
63 |
|
63 |
|
64 |
--enable-static*) |
64 |
--enable-static*) |
Lines 148-154
fi
Link Here
|
148 |
# Set default variables in case it was not precised |
148 |
# Set default variables in case it was not precised |
149 |
|
149 |
|
150 |
if [ "$MODPATHSET" != "1" ]; then |
150 |
if [ "$MODPATHSET" != "1" ]; then |
151 |
echo "#define ELFSH_MODPATH \"/usr/share/elfsh/\"" >> vars.h |
151 |
echo "#define ELFSH_MODPATH \"/usr/lib/elfsh/\"" >> vars.h |
152 |
fi |
152 |
fi |
153 |
|
153 |
|
154 |
if [ "$SHELLSET" != "1" ]; then |
154 |
if [ "$SHELLSET" != "1" ]; then |
Lines 160-166
if [ "$BUILDOP" != "1" ]; then
Link Here
|
160 |
fi |
160 |
fi |
161 |
|
161 |
|
162 |
echo " [*] Enabling libasm support" |
162 |
echo " [*] Enabling libasm support" |
163 |
echo "LDASMOPT = -lasm" >> config.h |
163 |
echo "LDASMOPT = -lasmelfsh" >> config.h |
164 |
|
164 |
|
165 |
|
165 |
|
166 |
# Now do the OS dependant configuration |
166 |
# Now do the OS dependant configuration |
Lines 225-239
echo "" >> Makefile
Link Here
|
225 |
echo "" >> Makefile |
225 |
echo "" >> Makefile |
226 |
echo "include ./config.h " >> Makefile |
226 |
echo "include ./config.h " >> Makefile |
227 |
echo " " >> Makefile |
227 |
echo " " >> Makefile |
|
|
228 |
echo "DESTDIR = /" >> Makefile |
228 |
echo "RM = rm -f " >> Makefile |
229 |
echo "RM = rm -f " >> Makefile |
229 |
echo "ETAGS = etags " >> Makefile |
230 |
echo "ETAGS = etags " >> Makefile |
230 |
echo "CTAGS = ctags " >> Makefile |
231 |
echo "CTAGS = ctags " >> Makefile |
231 |
echo "BASEPATH = \$(DESTDIR)/usr" >> Makefile |
232 |
echo "BASEPATH = \$(DESTDIR)/usr" >> Makefile |
232 |
echo "MODPATH = \$(BASEPATH)/share/elfsh/" >> Makefile |
233 |
echo "BINPATH = \$(BASEPATH)/bin" >> Makefile |
233 |
echo "BINPATH = \$(BASEPATH)/bin/" >> Makefile |
234 |
echo "LIBPATH = \$(BASEPATH)/lib" >> Makefile |
234 |
echo "LIBPATH = \$(BASEPATH)/lib/" >> Makefile |
235 |
echo "INCPATH = \$(BASEPATH)/include" >> Makefile |
235 |
echo "INCPATH = \$(BASEPATH)/include/" >> Makefile |
|
|
236 |
echo "MANPATH = \$(BASEPATH)/share/man" >> Makefile |
236 |
echo "MANPATH = \$(BASEPATH)/share/man" >> Makefile |
|
|
237 |
echo "MODPATH = \$(LIBPATH)/elfsh" >> Makefile |
237 |
|
238 |
|
238 |
echo " " >> Makefile |
239 |
echo " " >> Makefile |
239 |
echo "all : world final modules tags" >> Makefile |
240 |
echo "all : world final modules tags" >> Makefile |
Lines 271-292
echo " @echo 'ELFsh modules suite built
Link Here
|
271 |
echo " " >> Makefile |
272 |
echo " " >> Makefile |
272 |
|
273 |
|
273 |
echo "install : mod_install " >> Makefile |
274 |
echo "install : mod_install " >> Makefile |
|
|
275 |
echo " @mkdir -p \$(BINPATH) \$(LIBPATH) \$(INCPATH)" >> Makefile |
274 |
echo " @cp vm/elfsh \$(BINPATH)/ " >> Makefile |
276 |
echo " @cp vm/elfsh \$(BINPATH)/ " >> Makefile |
|
|
277 |
echo " @cp vm/e2dbg.so \$(LIBPATH)/ " >> Makefile |
275 |
echo " @cp libelfsh/libelfsh.a libelfsh/libelfsh.so \$(LIBPATH) " >> Makefile |
278 |
echo " @cp libelfsh/libelfsh.a libelfsh/libelfsh.so \$(LIBPATH) " >> Makefile |
276 |
echo " @cp libasm/libasm.a \$(LIBPATH) " >> Makefile |
279 |
echo " @cp libasm/libasmelfsh.a \$(LIBPATH) " >> Makefile |
|
|
280 |
echo " @cp libhash/libhashelfsh.a \$(LIBPATH) " >> Makefile |
277 |
echo " @cp -R libelfsh/include/* \$(INCPATH) " >> Makefile |
281 |
echo " @cp -R libelfsh/include/* \$(INCPATH) " >> Makefile |
|
|
282 |
echo " @cp libhash/include/libhash.h \$(INCPATH)" >> Makefile |
278 |
echo " @cp libasm/include/libasm.h \$(INCPATH)" >> Makefile |
283 |
echo " @cp libasm/include/libasm.h \$(INCPATH)" >> Makefile |
279 |
echo " @cp libasm/include/libasm-i386.h \$(INCPATH) " >> Makefile |
284 |
echo " @cp libasm/include/libasm-i386.h \$(INCPATH) " >> Makefile |
|
|
285 |
echo " @mkdir -p \$(MANPATH)/man1 " >> Makefile |
280 |
echo " @cp doc/elfsh.1 \$(MANPATH)/man1/ " >> Makefile |
286 |
echo " @cp doc/elfsh.1 \$(MANPATH)/man1/ " >> Makefile |
281 |
echo " @chmod 755 \$(MANPATH)/man1/elfsh.1 " >> Makefile |
287 |
echo " @chmod 755 \$(MANPATH)/man1/elfsh.1 " >> Makefile |
282 |
echo " @chmod 755 \$(BINPATH)/elfsh " >> Makefile |
288 |
echo " @chmod 755 \$(BINPATH)/elfsh " >> Makefile |
283 |
echo " @chmod 755 \$(LIBPATH)libelfsh.so " >> Makefile |
289 |
echo " @chmod 755 \$(LIBPATH)/libelfsh.so " >> Makefile |
284 |
echo " @chmod 755 \$(LIBPATH)e2dbg.so " >> Makefile |
290 |
echo " @chmod 755 \$(LIBPATH)/e2dbg.so " >> Makefile |
285 |
echo " @chmod 755 \$(INCPATH)libelfsh*.h " >> Makefile |
291 |
echo " @chmod 755 \$(INCPATH)/libelfsh*.h " >> Makefile |
286 |
echo " @chmod 755 \$(LIBPATH)libelfsh.a " >> Makefile |
292 |
echo " @chmod 755 \$(LIBPATH)/libelfsh.a " >> Makefile |
287 |
echo " @chmod 755 \$(LIBPATH)libasm.a " >> Makefile |
293 |
echo " @chmod 755 \$(LIBPATH)/libasmelfsh.a " >> Makefile |
288 |
echo " @chmod 755 \$(INCPATH)libelfsh*.h " >> Makefile |
294 |
echo " @chmod 755 \$(LIBPATH)/libhashelfsh.a " >> Makefile |
289 |
echo " @chmod 755 \$(INCPATH)libasm*.h " >> Makefile |
295 |
echo " @chmod 755 \$(INCPATH)/libelfsh*.h " >> Makefile |
|
|
296 |
echo " @chmod 755 \$(INCPATH)/libasm*.h " >> Makefile |
297 |
echo " @chmod 755 \$(INCPATH)/libhash*.h " >> Makefile |
290 |
echo " @echo 'ELFsh, Libelfsh, and Libasm installed successfully .'" >> Makefile |
298 |
echo " @echo 'ELFsh, Libelfsh, and Libasm installed successfully .'" >> Makefile |
291 |
echo " " >> Makefile |
299 |
echo " " >> Makefile |
292 |
|
300 |
|
Lines 306-313
echo " @echo 'ELFsh ET_DYN has been buil
Link Here
|
306 |
echo " " >> Makefile |
314 |
echo " " >> Makefile |
307 |
|
315 |
|
308 |
echo "mod_install: " >> Makefile |
316 |
echo "mod_install: " >> Makefile |
309 |
echo " @mkdir \$(MODPATH) 2>/dev/null || true " >> Makefile |
317 |
echo " @mkdir -p \$(MODPATH) " >> Makefile |
310 |
echo " @cp modules/*.so \$(MODPATH) " >> Makefile |
318 |
echo " @cp modules/*.so \$(MODPATH) 2>/dev/null || true " >> Makefile |
311 |
echo " @chmod -R 755 \$(MODPATH) " >> Makefile |
319 |
echo " @chmod -R 755 \$(MODPATH) " >> Makefile |
312 |
echo " " >> Makefile |
320 |
echo " " >> Makefile |
313 |
|
321 |
|