blob: beacfbfba1f8bec38d3c4f53766fac4282f9bb68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
TARGET = GTK2
GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
GTK_CFLAGS = -DXTHREADS -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
PACKAGE = hardinfo-0.3.7pre
# ----------------------------------------------------------------------------
CC = gcc
CFLAGS = -Wall -g $(GTK_CFLAGS) -O6
# ----------------------------------------------------------------------------
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
all: $(OBJECTS)
$(CC) $(CFLAGS) -o hardinfo $(OBJECTS) $(GTK_LIBS) $(GTK_FLAGS)
clean:
rm -rf *~ .xvpics pixmaps/.xvpics *.o hardinfo
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
dist-clean: clean
rm -rf Makefile debian/hardinfo/ config.h
package: dist-clean
@echo "Creating tar.gz..."
cd .. && tar czf $(PACKAGE).tar.gz $(PACKAGE)/* && cd $(PACKAGE)
@echo "Creating tar.bz2..."
cd .. && tar cjf $(PACKAGE).tar.bz2 $(PACKAGE)/* && cd $(PACKAGE)
deb: dist-clean
@echo "Creating deb..."
dpkg-buildpackage -rfakeroot -k${USER}
|