diff options
| author | Julian Blake Kongslie | 2022-11-30 17:56:22 -0800 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-11-30 17:56:22 -0800 |
| commit | 07a07eb6f6c4c0a93aff412964e7a133179d041e (patch) | |
| tree | 8685104da4c36f426ea7d874d55a45e146443475 /Makefile | |
| parent | Nefarious scheming (diff) | |
| download | biggolf-07a07eb6f6c4c0a93aff412964e7a133179d041e.tar.xz | |
Enable parallel LTO linking.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -3,7 +3,7 @@ BUILD := build | |||
| 3 | override PACKAGES := fmt | 3 | override PACKAGES := fmt |
| 4 | 4 | ||
| 5 | WARNINGS := -Wall -Werror | 5 | WARNINGS := -Wall -Werror |
| 6 | OPTIMIZE := -Og -flto | 6 | OPTIMIZE := -Og -flto=auto -fuse-linker-plugin |
| 7 | DEBUG := -g | 7 | DEBUG := -g |
| 8 | 8 | ||
| 9 | CXX := g++ | 9 | CXX := g++ |
| @@ -70,10 +70,10 @@ $(BUILD)/%.o: $(BUILD)/%.bin | |||
| 70 | 70 | ||
| 71 | $(BUILD)/%.o: %.cpp | 71 | $(BUILD)/%.o: %.cpp |
| 72 | @mkdir -p $(dir $@) | 72 | @mkdir -p $(dir $@) |
| 73 | $(CXX) $(CXXFLAGS) $(COMPILE_FLAGS) -c -o $@ $< | 73 | +$(CXX) $(CXXFLAGS) $(COMPILE_FLAGS) -c -o $@ $< |
| 74 | 74 | ||
| 75 | $(BUILD)/%.o: $(BUILD)/%.cpp | 75 | $(BUILD)/%.o: $(BUILD)/%.cpp |
| 76 | $(CXX) $(CXXFLAGS) $(COMPILE_FLAGS) -c -o $@ $< | 76 | +$(CXX) $(CXXFLAGS) $(COMPILE_FLAGS) -c -o $@ $< |
| 77 | 77 | ||
| 78 | $(BUILD)/programs/programs.cpp: | 78 | $(BUILD)/programs/programs.cpp: |
| 79 | @mkdir -p $(dir $@) | 79 | @mkdir -p $(dir $@) |
| @@ -81,4 +81,4 @@ $(BUILD)/programs/programs.cpp: | |||
| 81 | 81 | ||
| 82 | $(BUILD)/minigolf: $(OBJECTS) | 82 | $(BUILD)/minigolf: $(OBJECTS) |
| 83 | @mkdir -p $(dir $@) | 83 | @mkdir -p $(dir $@) |
| 84 | $(CXX) $(CXXFLAGS) -o $@ -Wl,--start-group $+ -Wl,--end-group $(LINK_FLAGS) | 84 | +$(CXX) $(CXXFLAGS) -o $@ -Wl,--start-group $+ -Wl,--end-group $(LINK_FLAGS) |
