pish/Makefile

30 lines
535 B
Makefile
Raw Normal View History

INC := -I include
2022-10-09 18:23:57 -05:00
all: compile link
2022-10-09 18:23:57 -05:00
compile:
gcc $(INC) -c -o build/main.o src/main.c
2022-10-19 21:45:01 -05:00
gcc $(INC) -c -o build/Integrated.o src/Integrated.c
gcc $(INC) -c -o build/Pish.o src/Pish.c
2022-10-09 18:23:57 -05:00
link:
gcc -o bin/pish.out build/*.o
2022-10-09 18:23:57 -05:00
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
2022-10-09 18:23:57 -05:00
clean:
rm build/*.o
rm bin/*.out