From 8e6c031ecb331d2cb57955f1bd251afaee34e1ef Mon Sep 17 00:00:00 2001 From: myitinos Date: Wed, 11 Sep 2019 23:09:14 +0800 Subject: [PATCH] make now compile as static executable --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9d50872..8a0dea1 100644 --- a/Makefile +++ b/Makefile @@ -12,11 +12,11 @@ Spell.o: lib/Spell.cpp lib/Spell.hpp Character.o: lib/Character.cpp lib/Character.hpp g++ -c lib/Character.cpp -o Character.o -spell-warz: Spell.o Character.o UserInterface.o BattleInterface.o main.cpp - g++ main.cpp -o spell-warz Spell.o Character.o UserInterface.o BattleInterface.o +spell-warz: Spell.o Character.o UserInterface.o BattleInterface.o main.cpp + g++ -static main.cpp -o spell-warz Spell.o Character.o UserInterface.o BattleInterface.o clean: Spell.o Character.o UserInterface.o BattleInterface.o rm Spell.o Character.o UserInterface.o BattleInterface.o spell-warz-striped: Spell.o Character.o UserInterface.o BattleInterface.o main.cpp - g++ -s main.cpp -o spell-warz Spell.o Character.o UserInterface.o BattleInterface.o + g++ -static -s main.cpp -o spell-warz Spell.o Character.o UserInterface.o BattleInterface.o