35 lines
		
	
	
		
			666 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			666 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# Wrapper Makefile.
 | 
						|
 | 
						|
# Build artifacts.
 | 
						|
BUILD_DIR := bin
 | 
						|
 | 
						|
# Client path.
 | 
						|
CLIENT_EXE := $(BUILD_DIR)/client/bettolac
 | 
						|
# Server path.
 | 
						|
SERVER_EXE := $(BUILD_DIR)/server/bettolas
 | 
						|
 | 
						|
.PHONY: all build config runc runs clean
 | 
						|
 | 
						|
# Default target when running 'make'.
 | 
						|
all: build
 | 
						|
 | 
						|
build: config
 | 
						|
	@echo "=== Building Bettola. ==="
 | 
						|
	@$(MAKE) -C $(BUILD_DIR)
 | 
						|
 | 
						|
config:
 | 
						|
	@echo "=== Configuring Project. ==="
 | 
						|
	@cmake -B $(BUILD_DIR) -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
 | 
						|
 | 
						|
runc: build
 | 
						|
	@echo "=== Running Bettola Client. ==="
 | 
						|
	@$(CLIENT_EXE)
 | 
						|
 | 
						|
runs: build
 | 
						|
	@echo "=== Running Bettola Server. ==="
 | 
						|
	@$(SERVER_EXE)
 | 
						|
 | 
						|
clean:
 | 
						|
	@echo "=== Cleaning Build Directory. ==="
 | 
						|
	@rm -rf $(BUILD_DIR)
 |