5
Hello
- #include <iostream>
- int main() {
- std::cout << "Hello" << " " << "from C++!" << std::endl;
- }
- APP=hello
- CPP=g++
- CPPFLAGS=-DDEBUG -g
- $(APP): $(APP).o
- $(CPP) $(APP).o -o $(APP)
- .PHONY: clean wipe
- clean:
- rm -f *.o
- wipe: clean
- rm -f $(APP)
$ make
g++ -DDEBUG -g -c -o hello.o hello.cpp
g++ hello.o -o hello
$ hello
Hello from C++!
Comments