Advertisement
alaestor

tupfile

Oct 9th, 2017
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #no spaces in project name
  2. PROJ = HelloWorld.exe
  3.  
  4. LIBS =
  5.  
  6. CFLAGS = -std=c++17
  7. CFLAGS += -O2
  8. CFLAGS += -Wall -Wextra -pedantic -Wstrict-aliasing=1 -Wstrict-overflow=3
  9. CFLAGS += -flto -fno-fat-lto-objects -s
  10.  
  11. LFLAGS = -static-libgcc -fuse-linker-plugin
  12.  
  13. : foreach src/*.cpp |> ^o^ g++ $(CFLAGS) -c %f -o %o |> obj/%B.o <objs>
  14. : <objs> |> g++ $(CFLAGS) $(LFLAGS) %<objs> -o %o $(LIBS) |> $(PROJ)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement