From 7b3c726991f0f060ca18c576fc7816b930435240 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sat, 20 May 2006 14:41:28 +0000 Subject: - Add binreloc support. - Add users information. - Add ppc64 and mips64 support. - Fix loadgraph autoscaling (should be usable now! :) - Misc cosmetic changes. - Misc wording changes. --- hardinfo2/Makefile.in | 41 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 5 deletions(-) (limited to 'hardinfo2/Makefile.in') diff --git a/hardinfo2/Makefile.in b/hardinfo2/Makefile.in index a2496199..032b2629 100644 --- a/hardinfo2/Makefile.in +++ b/hardinfo2/Makefile.in @@ -1,12 +1,12 @@ -CC = gcc -fPIC -pipe -O3 $(ARCHOPTS) -CCSLOW = gcc -fPIC -pipe -O0 -CFLAGS = -Wall -g $(GTK_CFLAGS) $(GLADE_CFLAGS) -I. +CC = gcc -O3 $(ARCHOPTS) +CCSLOW = gcc -O0 +CFLAGS = -fPIC -pipe -Wall -g $(GTK_CFLAGS) $(GLADE_CFLAGS) -I. # ---------------------------------------------------------------------------- OBJECTS = hardinfo.o shell.o util.o iconcache.o loadgraph.o sha1.o md5.o \ - menu.o stock.o callbacks.o expr.o report.o blowfish.o + menu.o stock.o callbacks.o expr.o report.o blowfish.o binreloc.o MODULES = computer.so devices.so benchmark.so all: $(OBJECTS) $(MODULES) @@ -26,7 +26,7 @@ sha1.o: @echo "--- Module: $< ($@)" $(CC) $(CFLAGS) -o $@ -shared $< $(GTK_FLAGS) $(GTK_LIBS) \ $(GLADE_LIBS) $(GLADE_FLAGS) - mv $@ modules + mv -f $@ modules clean: rm -rf .xvpics pixmaps/.xvpics *.o *.so hardinfo modules/*.so report @@ -46,3 +46,34 @@ deb: dist-clean @echo "Creating deb..." dpkg-buildpackage -rfakeroot -k${USER} +install: all + @echo '*** Creating directories...' + mkdir -p ${DESTDIR}/usr/bin + mkdir -p ${DESTDIR}/usr/local + mkdir -p ${DESTDIR}/usr/share/applications + mkdir -p ${DESTDIR}/usr/lib/hardinfo/modules + mkdir -p ${DESTDIR}/usr/share/hardinfo/pixmaps + + @echo '*** Installing icon...' + cp hardinfo.desktop ${DESTDIR}/usr/share/applications + + @echo '*** Installing executable...' + cp hardinfo ${DESTDIR}/usr/bin/hardinfo + + @echo '*** Installing modules...' + cp -r modules/*.so ${DESTDIR}/usr/lib/hardinfo/modules + + @echo '*** Installing pixmaps...' + cp -r pixmaps/* ${DESTDIR}/usr/share/hardinfo/pixmaps + + @echo '*** Installing misc data...' + cp uidefs.xml ${DESTDIR}/usr/share/hardinfo + cp modules.conf ${DESTDIR}/usr/share/hardinfo + cp benchmark.conf ${DESTDIR}/usr/share/hardinfo + cp benchmark.data ${DESTDIR}/usr/share/hardinfo + + @echo '*** Fixing permissions...' + chmod -R 755 ${DESTDIR}/usr/share/hardinfo + chmod 755 ${DESTDIR}/usr/bin/hardinfo + + @echo '*** Done installing.' -- cgit v1.2.3