1 #CXXFLAGS = -fmodules-ts -std=c++20
5 CXXFLAGS = -std=c++20 -fimplicit-modules -fprebuilt-module-path=. -fmodules-cache-path=foo
8 OBJS = main.o helloworld.o
19 $(CXX) $(CXXFLAGS) -o $@ $?
21 main.o: main.cc $(MODS)
22 helloworld.o: helloworld.cc
24 helloworld.pcm: helloworld.cc
25 $(CXX) $(CXXFLAGS) -Xclang -emit-module-interface -c helloworld.cc -o helloworld.pcm