123456789101112131415161718 |
- linux-artifact = hello-linux.out
- win-artifact = hello-windows.exe
- linux-compiler = g++
- # Embed c and c++ libraries (see https://stackoverflow.com/a/6405064)
- win-compiler = i686-w64-mingw32-g++-win32 -static-libstdc++ -static-libgcc
- all: $(linux-artifact) $(win-artifact)
- $(linux-artifact): main.cpp
- $(linux-compiler) main.cpp -o $(linux-artifact)
- $(win-artifact): main.cpp
- $(win-compiler) main.cpp -o $(win-artifact)
- clean:
- rm -f $(linux-artifact) $(win-artifact)
|