[Dawid Gajownik] Update Makefile to compile correctly with X.Org X11R7
This commit is contained in:
		
							parent
							
								
									20085bfcc5
								
							
						
					
					
						commit
						7c4b24f2fd
					
				
					 1 changed files with 11 additions and 2 deletions
				
			
		
							
								
								
									
										13
									
								
								src/Makefile
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								src/Makefile
									
										
									
									
									
								
							|  | @ -1,7 +1,16 @@ | ||||||
| # Set the C flags to include the GTK+ and Python libraries
 | # Set the C flags to include the GTK+ and Python libraries
 | ||||||
| PYTHONVER = `python -c 'import sys; print sys.version[:3]'` | PYTHONVER = `python -c 'import sys; print sys.version[:3]'` | ||||||
| CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0` -fPIC -I/usr/include/python$(PYTHONVER) -I. | HAVE_XSCRNSAVER = $(shell pkg-config --exists xscrnsaver && echo 'YES') | ||||||
| LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0` | 
 | ||||||
|  | ifeq ($(HAVE_XSCRNSAVER),YES) | ||||||
|  | # We link with libXScrnsaver from modular X.Org X11
 | ||||||
|  | CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0 xscrnsaver` -fpic -I/usr/include/python$(PYTHONVER) -I. | ||||||
|  | LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0 xscrnsaver` | ||||||
|  | else | ||||||
|  | # We link with libXScrnsaver from monolithic X.Org X11
 | ||||||
|  | CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0` -fpic -I/usr/include/python$(PYTHONVER) -I. | ||||||
|  | LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0` -L/usr/X11R6$(LIBDIR) -lX11 -lXss -lXext | ||||||
|  | endif | ||||||
| 
 | 
 | ||||||
| all: trayicon.so gtkspell.so | all: trayicon.so gtkspell.so | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue