added makefile

This commit is contained in:
Julian LECLERC 2022-03-30 11:05:24 +02:00
parent 74925aa1df
commit 98435c957a
2 changed files with 12 additions and 0 deletions

BIN
a.out

Binary file not shown.

12
makefile.txt Normal file
View File

@ -0,0 +1,12 @@
all: main arithmetic
g++ main.o arithmetic.o
main: main.cpp
g++ -c main.cpp
arithmetic: arithmetic.cpp arithmetic.h
g++ -c arithmetic.cpp
clean:
rm*.o
rm a.out