Do not build sdl_image_test unless API is either sdl or sdl2
This commit is contained in:
		
							parent
							
								
									23e462d177
								
							
						
					
					
						commit
						04224ac6b6
					
				@ -5,6 +5,14 @@ ifneq ($(shell test -f ../src/version.c && echo exists),exists)
 | 
				
			|||||||
$(error please build grafx2 first. missing version.c file.)
 | 
					$(error please build grafx2 first. missing version.c file.)
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					API ?= sdl
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					TOOLS = gifanalyzer test_iff
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ifeq (sdl,$(findstring sdl,$(API)))
 | 
				
			||||||
 | 
					TOOLS += sdl_image_test
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
GIT_REVISION = $(shell cat ../src/version.c | cut -f 2 -d '"')
 | 
					GIT_REVISION = $(shell cat ../src/version.c | cut -f 2 -d '"')
 | 
				
			||||||
LABEL = $(shell cat ../src/pversion.c | cut -f 2 -d '"')
 | 
					LABEL = $(shell cat ../src/pversion.c | cut -f 2 -d '"')
 | 
				
			||||||
VERSION = $(subst wip.,wip,$(LABEL).$(GIT_REVISION))
 | 
					VERSION = $(subst wip.,wip,$(LABEL).$(GIT_REVISION))
 | 
				
			||||||
@ -15,7 +23,7 @@ DOCARCHIVE = ../grafx2-$(VERSION)-doxygen.tgz
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.PHONY:	all gifanalyzer sdl_image_test test_iff doxygen
 | 
					.PHONY:	all gifanalyzer sdl_image_test test_iff doxygen
 | 
				
			||||||
 | 
					
 | 
				
			||||||
all:	gifanalyzer sdl_image_test test_iff
 | 
					all:	$(TOOLS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
gifanalyzer:
 | 
					gifanalyzer:
 | 
				
			||||||
	$(MAKE) -C $@
 | 
						$(MAKE) -C $@
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user