summary refs log tree commit diff stats
path: root/plugins/sysinfo/xsys-makefile
blob: 8b51a53da9b524d36dd47897cd1bf92393f0667d (plain) (blame)
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
#### SET THIS VALUE TO THE LOCATION OF THE `pci.ids` file ####
PCIIDS = /usr/share/misc/pci.ids

#### UNCOMMENT THIS IF YOU WANT THE BUTTONS ####
#BUTTON = -Dbuttonbar

#### SHOULD NOT NEED TO EDIT BELOW THIS LINE ####
VER_MAJOR = 2
VER_MINOR = 2
VER_PATCH = 0
CC = gcc
CFLAGS += -O2 -Wall -fPIC
CFLAGS += -DVER_MINOR=$(VER_MINOR) -DVER_MAJOR=$(VER_MAJOR) -DVER_PATCH=$(VER_PATCH) \
          -DVER_STRING=\"$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)\" -DPCIIDS=\"$(PCIIDS)\" $(BUTTON)
LDFLAGS = $(CFLAGS) -shared
LIBRARY = xsys-$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH).so
OBJECTS = xsys.o parse.o pci.o match.o hwmon.o

ALL : $(LIBRARY)

$(LIBRARY) : $(OBJECTS)
	$(CC) $(LDFLAGS) -o $(LIBRARY) $(OBJECTS) -lpci

xsys.o : xsys.c
parse.o : parse.c
pci.o : pci.c
match.o : match.c
hwmon.o : hwmon.c

.PHONY : clean
clean :
	rm -rf *.o *.so *~

.PHONY : install
install : $(LIBRARY)
	rm -f $(HOME)/.xchat2/xsys-plugin.so
	cp ./$(LIBRARY) $(HOME)/.xchat2/xsys-plugin.so
span class="s2">"Application Options:" .TP \fB\-a\fR, \fB\-\-no\-auto\fR Don't auto connect to servers .TP \fB\-d\fR, \fB\-\-cfgdir\fR=\fIPATH\fR Use a different config directory .TP \fB\-n\fR, \fB\-\-no\-plugins\fR Don't auto load any plugins .TP \fB\-p\fR, \fB\-\-plugindir\fR Show plugin auto\-load directory .TP \fB\-u\fR, \fB\-\-configdir\fR Show user config directory .TP \fB\-\-url\fR=\fIURL\fR Open an irc://server:port/channel?key URL .TP \fB\-c\fR, \fB\-\-command\fR=\fICOMMAND\fR Execute command: .TP \fB\-e\fR, \fB\-\-existing\fR Open URL or execute command in an existing HexChat .TP \fB\-\-minimize\fR=\fIlevel\fR Begin minimized. Level 0=Normal 1=Iconified 2=Tray .TP \fB\-v\fR, \fB\-\-version\fR Show version information .TP \fB\-\-display\fR=\fIDISPLAY\fR X display to use .SH AUTHOR This manual page was written by Davide Puricelli <evo@debian.org> for the Debian GNU/Linux system (but may be used by others).