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