aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 14:38:33 -0500
committerSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 14:38:33 -0500
commit854292407779593a401a1d5ce71add51880fa84f (patch)
tree42b5f1896eda603c04a30db1effb133f10f71ca8 /Makefile.in
parenta08438bda21b3e0d7db2db2360d040841970104d (diff)
Import Upstream version 0.4
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in71
1 files changed, 42 insertions, 29 deletions
diff --git a/Makefile.in b/Makefile.in
index 29014b89..c4ac1fa1 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,41 +1,40 @@
-# ----------------------------------------------------------------------------
-CC = gcc
-CFLAGS = -Wall -g $(GTK_CFLAGS) -O6
+CC = gcc -fPIC -pipe -O3 $(ARCHOPTS)
+CCSLOW = gcc -fPIC -pipe -O0
+CFLAGS = -Wall -g $(GTK_CFLAGS) $(GLADE_CFLAGS) -I.
# ----------------------------------------------------------------------------
-OBJECTS = hardinfo.o scsi.o ide.o pci.o usb.o isapnp.o serial.o parport.o \
- computer.o x11.o intl.o about.o v4l.o status.o net.o stock.o \
- details.o modules.o
+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
+MODULES = computer.so devices.so benchmark.so
-all: $(OBJECTS)
- $(CC) $(CFLAGS) -o hardinfo $(OBJECTS) $(GTK_LIBS) $(GTK_FLAGS)
+all: $(OBJECTS) $(MODULES)
+ $(CC) $(CFLAGS) -o hardinfo -Wl,-export-dynamic $(OBJECTS) $(GTK_LIBS) $(GTK_FLAGS) \
+ $(GLADE_LIBS) $(GLADE_FLAGS)
-clean:
- rm -rf *~ .xvpics pixmaps/.xvpics *.o hardinfo
+md5.o:
+ $(CCSLOW) $(CFLAGS) -c md5.c -o $@
-install: all
- mkdir -p ${DESTDIR}/usr/bin/
- cp hardinfo ${DESTDIR}/usr/bin/hardinfo
- mkdir -p ${DESTDIR}/usr/share/hardinfo/pixmaps
- cp -rv pixmaps/*.png ${DESTDIR}/usr/share/hardinfo/pixmaps
- cp -rv pixmaps/logo.xpm ${DESTDIR}/usr/share/hardinfo/pixmaps
- mkdir -p ${DESTDIR}/usr/share/hardinfo/pixmaps/distro
- cp -rv pixmaps/distro/*.png ${DESTDIR}/usr/share/hardinfo/pixmaps/distro
- mkdir -p ${DESTDIR}/usr/share/hardinfo/lang
- cp -rv lang/* ${DESTDIR}/usr/share/hardinfo/lang
- chmod -R 755 ${DESTDIR}/usr/share/hardinfo
- chmod -R -x ${DESTDIR}/usr/share/hardinfo
- chmod 755 ${DESTDIR}/usr/share/hardinfo
- chmod 755 ${DESTDIR}/usr/share/hardinfo/pixmaps
- chmod 755 ${DESTDIR}/usr/share/hardinfo/lang
- chmod 755 ${DESTDIR}/usr/share/hardinfo/pixmaps/distro
- mkdir -p ${DESTDIR}/usr/share/applications
- cp hardinfo.desktop ${DESTDIR}/usr/share/applications
+blowfish.o:
+ $(CCSLOW) $(CFLAGS) -c blowfish.c -o $@
+
+sha1.o:
+ $(CCSLOW) $(CFLAGS) -c sha1.c -o $@
+
+%.so: %.c
+ @echo "--- Module: $< ($@)"
+ $(CC) $(CFLAGS) -o $@ -shared $< $(GTK_FLAGS) $(GTK_LIBS) \
+ $(GLADE_LIBS) $(GLADE_FLAGS)
+ mv $@ modules
+
+clean:
+ rm -rf .xvpics pixmaps/.xvpics *.o *.so hardinfo modules/*.so report
+ find . -name \*~ -exec rm -v {} \;
+ find . -name x86 -type l -exec rm -v {} \;
dist-clean: clean
- rm -rf Makefile debian/hardinfo/ config.h
+ rm -rf Makefile debian/hardinfo/ config.h arch/this
package: dist-clean
@echo "Creating tar.gz..."
@@ -47,3 +46,17 @@ deb: dist-clean
@echo "Creating deb..."
dpkg-buildpackage -rfakeroot -k${USER}
+install: all
+ mkdir -p ${DESTDIR}/usr/bin
+ cp hardinfo ${DESTDIR}/usr/bin/hardinfo
+ mkdir -p ${DESTDIR}/usr/share/hardinfo/modules
+ cp -rv modules/*.so ${DESTDIR}/usr/share/hardinfo/modules
+ mkdir -p ${DESTDIR}/usr/share/hardinfo/pixmaps
+ cp -rv pixmaps/* ${DESTDIR}/usr/share/hardinfo/pixmaps
+ 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
+ chmod -R 755 ${DESTDIR}/usr/share/hardinfo
+ chmod 755 ${DESTDIR}/usr/bin/hardinfo
+