Added makefile for prolog

This commit is contained in:
Ziad Arafat committed 2023-05-03 21:52:08 -06:00
1 parent 8d64031370
commit 56dfff3142
1 file changed
+4 -18
+4 -18
View File
@@ -4,22 +4,8 @@ reset=`tput sgr0`
# Variables so its easy to make changes if I need to (it ended up being helpful)
all: test
all:
test: pa008/App.java pa008/Natural.java
@echo "${green} Building and executing Java code ${reset}"
javac -cp pa008/ pa008/*java
java -cp . pa008/App
run_ada: grade_distribution.adb
@echo "${green} Building and executing Ada code ${reset}"
gcc -c grade_distribution.adb
gnatbind grade_distribution
gnatlink grade_distribution
./grade_distribution
clean:
rm -rf *.o
rm -rf *.ali
rm -rf grade_distribution
rm -rf pa008/*.class
test:
swipl -s list_operations_tests.pl -g run_tests,halt