30 lines
		
	
	
		
			535 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			535 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| INC := -I include
 | |
| 
 | |
| all: compile link
 | |
| 
 | |
| compile:
 | |
| 	gcc $(INC) -c -o build/main.o src/main.c
 | |
| 	gcc $(INC) -c -o build/Integrated.o src/Integrated.c
 | |
| 	gcc $(INC) -c -o build/Pish.o src/Pish.c
 | |
| 
 | |
| link:
 | |
| 	gcc -o bin/pish.out build/*.o
 | |
| 
 | |
| exec: compile link
 | |
| 	./bin/pish.out
 | |
| 
 | |
| debug: debugCompile debugLink
 | |
| 
 | |
| debugCompile:
 | |
| 	gcc $(INC) -g -c -o build/main.o src/main.c
 | |
| 	gcc $(INC) -g -c -o build/Integrated.o src/Integrated.c
 | |
| 	gcc $(INC) -g -c -o build/Pish.o src/Pish.c
 | |
| 
 | |
| debugLink:
 | |
| 	gcc -g -o bin/pish.out build/*.o
 | |
| 
 | |
| 
 | |
| clean:
 | |
| 	rm build/*.o
 | |
| 	rm bin/*.out
 |