nesting basic stuff in its own tree
This commit is contained in:
16
basics/Makefile
Normal file
16
basics/Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
CPPC := g++
|
||||
|
||||
ALL_TARGETS = bin/hello-world
|
||||
|
||||
|
||||
bin/%: src/%.cpp
|
||||
$(CPPC) $^ -o $@
|
||||
|
||||
|
||||
all: $(ALL_TARGETS)
|
||||
|
||||
clean:
|
||||
rm -vf ./bin/*
|
||||
|
||||
|
||||
.PHONY: all clean
|
0
basics/bin/.keep
Normal file
0
basics/bin/.keep
Normal file
7
basics/src/hello-world.cpp
Normal file
7
basics/src/hello-world.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <cstdio>
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("Hello World!\n");
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user