2022-10-10 18:51:12 -05:00
|
|
|
INC := -I include
|
2022-10-09 18:23:57 -05:00
|
|
|
|
2022-10-25 01:09:00 -05:00
|
|
|
all: compile link
|
2022-10-09 18:23:57 -05:00
|
|
|
|
2022-10-25 01:09:00 -05:00
|
|
|
compile:
|
2022-10-10 18:51:12 -05:00
|
|
|
gcc $(INC) -c -o build/main.o src/main.c
|
2022-10-27 00:25:40 -05:00
|
|
|
gcc $(INC) -c -o build/Common.o src/Common.c
|
2022-10-19 21:45:01 -05:00
|
|
|
gcc $(INC) -c -o build/Integrated.o src/Integrated.c
|
2022-10-10 18:51:12 -05:00
|
|
|
gcc $(INC) -c -o build/Pish.o src/Pish.c
|
2022-10-09 18:23:57 -05:00
|
|
|
|
2022-10-25 01:09:00 -05:00
|
|
|
link:
|
2022-10-10 18:55:22 -05:00
|
|
|
gcc -o bin/pish.out build/*.o
|
2022-10-09 18:23:57 -05:00
|
|
|
|
2022-10-25 02:12:07 -05:00
|
|
|
exec: compile link
|
|
|
|
./bin/pish.out
|
|
|
|
|
2022-10-27 00:25:40 -05:00
|
|
|
debug: clean debugCompile debugLink
|
2022-10-25 02:12:07 -05:00
|
|
|
|
|
|
|
debugCompile:
|
|
|
|
gcc $(INC) -g -c -o build/main.o src/main.c
|
|
|
|
gcc $(INC) -g -c -o build/Integrated.o src/Integrated.c
|
2022-10-27 00:25:40 -05:00
|
|
|
gcc $(INC) -g -c -o build/Common.o src/Common.c
|
2022-10-25 02:12:07 -05:00
|
|
|
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:
|
2022-10-25 01:09:00 -05:00
|
|
|
rm build/*.o
|
|
|
|
rm bin/*.out
|