summary refs log tree commit diff stats
path: root/src/gtk2-prefs/callbacks.cpp
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-04-20 18:37:30 -0300
committerTingPing <tngpng@gmail.com>2013-04-20 18:37:30 -0300
commitbc1c84347d54b438854daf83c3a9b73726716c43 (patch)
tree49071d95ead0a58a5023fee83eaf0aac739fd661 /src/gtk2-prefs/callbacks.cpp
parent2db01371b30e35649b72347d9a61f8c714d34f87 (diff)
fix install error
Diffstat (limited to 'src/gtk2-prefs/callbacks.cpp')
0 files changed, 0 insertions, 0 deletions
5' href='#n5'>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