diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/bruisertest/compile_commands.json | 2 | ||||
| -rw-r--r-- | test/bruisertest/makefile | 8 | ||||
| -rw-r--r-- | test/bruisertest/test.cpp | 4 | 
3 files changed, 9 insertions, 5 deletions
| diff --git a/test/bruisertest/compile_commands.json b/test/bruisertest/compile_commands.json index ff36476..a70fd13 100644 --- a/test/bruisertest/compile_commands.json +++ b/test/bruisertest/compile_commands.json @@ -1,6 +1,6 @@  [      { -        "command": "c++ -c -o test test.cpp",  +        "command": "c++ -c -v -I/usr/lib/gcc/x86_64-redhat-linux/6.3.1/include -o test.o test.cpp",           "directory": "/home/bloodstalker/devi/hell2/test/bruisertest",           "file": "/home/bloodstalker/devi/hell2/test/bruisertest/test.cpp"      } diff --git a/test/bruisertest/makefile b/test/bruisertest/makefile index c8b1c3e..1b0859b 100644 --- a/test/bruisertest/makefile +++ b/test/bruisertest/makefile @@ -1,14 +1,18 @@  BRUISER_TEST=test  CXX?=clang++ +# you should change the include path to one that is right for you +CXX_FLAGS=-I/usr/lib/gcc/x86_64-redhat-linux/6.3.1/include  .DEFAULT:all clean +.PHONY:all clean $(BRUISER_TEST) help +  all:$(BRUISER_TEST)  .cpp.o: -	$(CXX) $(CXX_FLAGS) -c $< -o $@ -I/usr/include +	$(CXX) $(CXX_FLAGS) -c $< -o $@  -$(BRUISER_TEST): test.cpp +$(BRUISER_TEST): test.o  	$(CXX) $^ $(LD_FLAGS) -o $@  clean: diff --git a/test/bruisertest/test.cpp b/test/bruisertest/test.cpp index 2e39dd9..680ce56 100644 --- a/test/bruisertest/test.cpp +++ b/test/bruisertest/test.cpp @@ -1,5 +1,5 @@ -#if 0 +#if 1  #include <fstream>  #include <iostream>  #endif @@ -22,7 +22,7 @@ namespace devi  int main(int argc, const char **argv)  { -#if 0 +#if 1    std::ofstream myfile;    myfile.open("./touch");    myfile << "line one.\n"; | 
