mirror of
				https://github.com/Tiiffi/mcrcon.git
				synced 2025-10-31 05:11:08 -04:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			aa933d2c1f
			...
			a8e2a9349e
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| a8e2a9349e | |||
| deed43ad61 | 
| @ -1,5 +1,5 @@ | |||||||
| Building and installing | Building and installing | ||||||
| ------------------------ | ----------------------- | ||||||
|  |  | ||||||
| Only dependency is C library and POSIX getopt support.  | Only dependency is C library and POSIX getopt support.  | ||||||
|  |  | ||||||
|  | |||||||
							
								
								
									
										11
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								Makefile
									
									
									
									
									
								
							| @ -4,7 +4,7 @@ | |||||||
| #   make | #   make | ||||||
| # | # | ||||||
| # Windows cross compile: | # Windows cross compile: | ||||||
| #   i686-w64-mingw32-gcc -std=gnu99 -Wall -Wextra -Wpedantic -O2 -o mcrcon.exe mcrcon.c -lws2_32 | #   x86_64-w64-mingw32-gcc -std=gnu99 -Wall -Wextra -Wpedantic -O2 -fstack-protector-all -o mcrcon.exe mcrcon.c -lws2_32 | ||||||
|  |  | ||||||
| EXENAME = mcrcon | EXENAME = mcrcon | ||||||
| PREFIX ?= /usr/local | PREFIX ?= /usr/local | ||||||
| @ -23,11 +23,6 @@ ifeq ($(OS), Windows_NT) | |||||||
| 	RM = cmd /C del /F | 	RM = cmd /C del /F | ||||||
| endif | endif | ||||||
|  |  | ||||||
| ifeq ($(shell uname), Darwin) |  | ||||||
| 	INSTALL = ginstall |  | ||||||
| 	CFLAGS = -std=gnu99 -Wall -Wextra -Wpedantic -O2 |  | ||||||
| endif |  | ||||||
|  |  | ||||||
| .PHONY: all | .PHONY: all | ||||||
| all: $(EXENAME) | all: $(EXENAME) | ||||||
|  |  | ||||||
| @ -37,8 +32,8 @@ $(EXENAME): mcrcon.c | |||||||
| ifneq ($(OS), Windows_NT) | ifneq ($(OS), Windows_NT) | ||||||
| .PHONY: install | .PHONY: install | ||||||
| install: | install: | ||||||
| 	$(INSTALL) -vD $(EXENAME) $(DESTDIR)$(PREFIX)/bin/$(EXENAME) | 	$(INSTALL) -v $(EXENAME) $(DESTDIR)$(PREFIX)/bin/$(EXENAME) | ||||||
| 	$(INSTALL) -vD -m 0644 mcrcon.1 $(DESTDIR)$(PREFIX)/share/man/man1/mcrcon.1 | 	$(INSTALL) -v -m 0644 mcrcon.1 $(DESTDIR)$(PREFIX)/share/man/man1/mcrcon.1 | ||||||
| 	@echo "\nmcrcon installed. Run 'make uninstall' if you want to uninstall.\n" | 	@echo "\nmcrcon installed. Run 'make uninstall' if you want to uninstall.\n" | ||||||
|  |  | ||||||
| .PHONY: uninstall | .PHONY: uninstall | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								mcrcon.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								mcrcon.c
									
									
									
									
									
								
							| @ -209,7 +209,7 @@ int main(int argc, char *argv[]) | |||||||
|  |  | ||||||
| 	if (pass == NULL) { | 	if (pass == NULL) { | ||||||
| 		puts("You must give password (-p password).\nTry 'mcrcon -h' or 'man mcrcon' for help."); | 		puts("You must give password (-p password).\nTry 'mcrcon -h' or 'man mcrcon' for help."); | ||||||
| 		return 0; | 		exit(EXIT_FAILURE); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	if(optind == argc && terminal_mode == 0) | 	if(optind == argc && terminal_mode == 0) | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	