Changes included in this set: * Added strlcat() and strlcpy() from OpenBSD, always use them if the system does not have them built in. * Changed an array of PATH_MAX size allocated in the stack, to a dynamically allocated buffer from heap. This should reduce memory usage a bit. * Simplify code that implemented a homegrown realpath(3) implementation, simply use realpath(3). * If compiler supports -fstack-protector, build all code with -D_FORTIFY_SOURCE=2 and --param ssp-buffer-size=1 so that all buffers are protected.
		
			
				
	
	
		
			19 lines
		
	
	
		
			261 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			261 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| -include ../config.mk
 | |
| 
 | |
| INCS =	xbps_api.h
 | |
| 
 | |
| .PHONY: all
 | |
| all:
 | |
| 
 | |
| .PHONY: install
 | |
| install:
 | |
| 	install -d $(DESTDIR)$(INCLUDEDIR)
 | |
| 	install -m 644 $(INCS) $(DESTDIR)$(INCLUDEDIR)
 | |
| 
 | |
| .PHONY: uninstall
 | |
| uninstall:
 | |
| 	-rm -f $(DESTDIR)$(INCLUDEDIR)/$(INCS)
 | |
| 
 | |
| .PHONY: clean
 | |
| clean:
 |