31 lines
		
	
	
		
			505 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			505 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| for file in *.cpp
 | |
| do
 | |
|    filename="${file%.*}"
 | |
|    list="$list $filename.o"  
 | |
|    echo -n "Compiling $filename..."
 | |
|    g++ -g -c -I../CoreUtils -I../ServerCore $file 
 | |
|    if [ $? = '0' ]
 | |
|    then
 | |
|     echo "OK"
 | |
|    else
 | |
|     echo "ERROR"
 | |
|     exit -1
 | |
|    fi   
 | |
|    
 | |
| done
 | |
| 
 | |
| wait
 | |
| echo -n "Building executable HTTPServer..."
 | |
| g++ -g -o HTTPServer $list -L../CoreUtils -lCoreUtils -L../ServerCore -lServerCore -lpthread -luuid -lssl -lcrypto
 | |
| if [ $? = '0' ]
 | |
| then
 | |
|  echo "OK"
 | |
| else
 | |
|  echo "ERROR"
 | |
|  exit -1
 | |
| fi   
 | |
| 
 | |
| 
 |