Skip to content

Instantly share code, notes, and snippets.

View Necklaces's full-sized avatar

Nichlas Severinsen Necklaces

View GitHub Profile
@Necklaces
Necklaces / Makefile
Created July 18, 2022 10:34 — forked from vladiant/Makefile
C++20 Hello World Module
main : main.o hello.o
g++-11 -o main main.o hello.o
main.o : main.cpp gcm.cache/smd.hello.gcm
g++-11 -fPIC -fmodules-ts -std=c++20 -o main.o -c main.cpp
hello.o: hello.cpp
g++-11 -fPIC -fmodules-ts -std=c++20 -o hello.o -c hello.cpp
gcm.cache/smd.hello.gcm: hello.o