added makefile

This commit is contained in:
Aurelien LOHMANN 2022-03-30 09:05:30 +02:00
parent b41a747ac1
commit 9636823fb9
1 changed files with 9 additions and 0 deletions

9
makefile Normal file
View File

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