From 55db3d0bacb980a3e793cf604b4ea3a8ab534454 Mon Sep 17 00:00:00 2001 From: ABelliqueux Date: Tue, 1 Dec 2020 15:10:29 +0100 Subject: [PATCH] Added makefile to compile in Linux without codeblocks --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b65fadf --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +all: main.o tim.o img2tim +.PHONY: all + +main.o:main.cpp + g++ -Wall -O2 -c main.cpp -o main.o +tim.o:tim.cpp + g++ -Wall -O2 -c tim.cpp -o tim.o +img2tim: + g++ -o img2tim main.o tim.o -s -lfreeimage + +clean: + rm -rf obj img2tim