32 lines
		
	
	
		
			434 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			434 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| #for file in *.cpp
 | |
| #do
 | |
| #   filename="${file%.*}"
 | |
| #   list="$list $filename.o"  
 | |
| #   echo -n "Compiling $filename..."
 | |
| #   g++ -c $file -I../ServerCore
 | |
| #   if [ $? = '0' ]
 | |
| #   then
 | |
| #    echo "OK"
 | |
| #   else
 | |
| #    echo "ERROR"
 | |
| #    exit -1
 | |
| #   fi   
 | |
|    
 | |
| done
 | |
| 
 | |
| wait
 | |
| echo -n "Building static library libServerCore.a..."
 | |
| ar rcs libServerCore.a $list
 | |
| if [ $? = '0' ]
 | |
| then
 | |
|  echo "OK"
 | |
| else
 | |
|  echo "ERROR"
 | |
|  exit -1
 | |
| fi   
 | |
| 
 | |
| rm *.o
 | |
| rm *~
 | 
