Compare commits

..

No commits in common. "d81f487b03d23ce3a9c1a693da9cf2699f64347c" and "aba9ddc048fa5ca81fc5eb74be7beca192db7753" have entirely different histories.

2 changed files with 14 additions and 18 deletions

View file

@ -1,5 +0,0 @@
{
"file_types": {
"C++": ["cxxm"]
}
}

View file

@ -1,3 +1,4 @@
.RECIPEPREFIX = >
.DEFAULT_GOAL = build/main.out
CXX = clang++
CXXFLAGS += -std=c++26 -Wno-experimental-header-units -Wno-unused-command-line-argument
@ -9,31 +10,31 @@ object_build = $(filter-out %.pcm,$^) $(call build_module_path,$(filter %.pcm,$^
autodir = @mkdir -p $(@D)
build/main.out: build/main.o build/builder.o
$(call autodir)
$(CXX) $(LDFLAGS) $^ -o $@
> $(call autodir)
> $(CXX) $(LDFLAGS) $^ -o $@
build/main.o:: main.cxx build/system/print.pcm build/user/builder.pcm
build/builder.o:: builder.cxxm build/system/type_traits.pcm
build/user/builder.pcm:: build/system/type_traits.pcm
build/%.o::
$(call autodir)
$(CXX) $(CXXFLAGS) -c $(call object_build)
@mv $(patsubst build/%,%,$@) $@
> $(call autodir)
> $(CXX) $(CXXFLAGS) -c $(call object_build)
> @mv $(patsubst build/%,%,$@) $@
build/user/%.pcm:: %.cxxm
$(call autodir)
$(CXX) $(CXXFLAGS) --precompile -o $@ $(call object_build)
> $(call autodir)
> $(CXX) $(CXXFLAGS) --precompile -o $@ $(call object_build)
build/system/%.pcm:
$(call autodir)
$(CXX) $(CXXFLAGS) -xc++-system-header --precompile $(patsubst build/system/%.pcm,%,$@) -o $@ $(SYSTEMHEADER_FLAGS)
> $(call autodir)
> $(CXX) $(CXXFLAGS) -xc++-system-header --precompile $(patsubst build/system/%.pcm,%,$@) -o $@ $(SYSTEMHEADER_FLAGS)
.PHONY: clean run bear
.PHONY: clean run
clean:
@-rm -rf ./build
> @-rm -rf ./build
bear: clean
bear --append -- $(MAKE)
> bear --append -- $(MAKE)
run: $(.DEFAULT_GOAL)
@./$(.DEFAULT_GOAL)
> @./$(.DEFAULT_GOAL)