Added makefile to compile in Linux without codeblocks

This commit is contained in:
ABelliqueux 2020-12-01 15:10:29 +01:00
parent ca244c3de1
commit 55db3d0bac
1 changed files with 12 additions and 0 deletions

12
Makefile Normal file
View File

@ -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