mirror of
				https://github.com/Perlmint/glew-cmake.git
				synced 2025-10-31 04:32:27 +00:00 
			
		
		
		
	Re-write .pc files unconditionally, in case GLEW_DEST is specified on command line.
#189 Generated .pc files are "easy to break"
This commit is contained in:
		
							parent
							
								
									38b7f7d09f
								
							
						
					
					
						commit
						41c1305a89
					
				
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							| @ -123,6 +123,10 @@ tmp/$(SYSTEM)/default/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wgl | ||||
| 	@mkdir -p $(dir $@) | ||||
| 	$(CC) -DGLEW_NO_GLU $(CFLAGS) $(CFLAGS.SO) -o $@ -c $< | ||||
| 
 | ||||
| # Force re-write of glew.pc, GLEW_DEST can vary
 | ||||
| 
 | ||||
| .PHONY: glew.pc | ||||
| 
 | ||||
| glew.pc: glew.pc.in | ||||
| 	sed \
 | ||||
| 		-e "s|@prefix@|$(GLEW_DEST)|g" \
 | ||||
| @ -159,6 +163,10 @@ tmp/$(SYSTEM)/mx/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h | ||||
| 	@mkdir -p $(dir $@) | ||||
| 	$(CC) -DGLEW_NO_GLU -DGLEW_MX $(CFLAGS) $(CFLAGS.SO) -o $@ -c $< | ||||
| 
 | ||||
| # Force re-write of glewmx.pc, GLEW_DEST can vary
 | ||||
| 
 | ||||
| .PHONY: glewmx.pc | ||||
| 
 | ||||
| glewmx.pc: glew.pc.in | ||||
| 	sed \
 | ||||
| 		-e "s|@prefix@|$(GLEW_DEST)|g" \
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user