Use pkg-config to detect libpng when building for unix, this helps with Debian package system.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1955 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
		
							parent
							
								
									2aa9ea7f8e
								
							
						
					
					
						commit
						493d998375
					
				@ -342,11 +342,9 @@ endif
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        # Compiles a regular linux executable for the native platform
 | 
					        # Compiles a regular linux executable for the native platform
 | 
				
			||||||
        BIN = ../bin/grafx2
 | 
					        BIN = ../bin/grafx2
 | 
				
			||||||
        COPT = -W -Wall -Wdeclaration-after-statement -std=c99 -c -g `sdl-config --cflags` $(TTFCOPT) $(LUACOPT) $(JOYCOPT) $(VKEYCOPT) -O$(OPTIM) -I/usr/local/include/libpng
 | 
					        COPT = -W -Wall -Wdeclaration-after-statement -std=c99 -c -g `sdl-config --cflags` $(TTFCOPT) $(LUACOPT) $(JOYCOPT) $(VKEYCOPT) -O$(OPTIM) `pkg-config --cflags libpng`
 | 
				
			||||||
        LOPT = `sdl-config --libs` -lSDL_image $(TTFLOPT) -lpng $(LUALOPT) -lm
 | 
					        LOPT = `sdl-config --libs` -lSDL_image $(TTFLOPT) `pkg-config --libs libpng` $(LUALOPT) -lm
 | 
				
			||||||
        # Use gcc for compiling. Use ncc to build a callgraph and analyze the code.
 | 
					 | 
				
			||||||
        CC = gcc
 | 
					        CC = gcc
 | 
				
			||||||
        #CC = nccgen -ncgcc -ncld -ncfabs
 | 
					 | 
				
			||||||
        OBJDIR = ../obj/unix
 | 
					        OBJDIR = ../obj/unix
 | 
				
			||||||
        X11LOPT = -lX11
 | 
					        X11LOPT = -lX11
 | 
				
			||||||
      endif
 | 
					      endif
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user