Skip to content
Snippets Groups Projects
Commit 2d186efa authored by Ori Almog's avatar Ori Almog
Browse files

Modified makefiles

parent 7c4e3535
No related branches found
No related tags found
No related merge requests found
all: *.cpp source: *.cpp
@echo Compiling sources...
@cp ./libtcod/*.so . @cp ./libtcod/*.so .
@g++ -g *.cpp -o RogueReborn.exe -I./libtcod/include -L. -ltcod -ltcodxx -Wl,-rpath=. -Wall -std=c++11 @g++ -g *.cpp -o RogueReborn.exe -I./libtcod/include -L. -ltcod -ltcodxx -Wl,-rpath=. -Wall -std=c++11
@make source -C test
default: all test
tests:
@make -C test
clean: clean:
@rm -f RogueReborn.exe *.so @rm -f RogueReborn.exe *.so
@rm -f scores.txt @rm -f scores.txt
@make clean -C test
default: source
\ No newline at end of file
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
#include <vector> #include <vector>
#include <iostream> #include <iostream>
#include "include/armor.h" #include "../include/armor.h"
int main(){ int main(){
sd::cout << "Hello" << std::endl; std::cout << "Hello" << std::endl;
} }
\ No newline at end of file
all: *.cpp source: *.cpp
@echo "I'm compiling tests" @echo Compiling tests...
@g++ -g *.cpp -o TestRogueReborn.exe -L. -Wl,-rpath=. -Wall -std=c++11
default: all clean:
\ No newline at end of file @rm -f TestRogueReborn.exe
default: source
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment