This repository has been archived on 2022-10-18. You can view files and clone it, but cannot push or open issues or pull requests.
HPC/Project0/src/fraction_summing/makefile
2022-09-20 16:38:03 +02:00

25 lines
440 B
Makefile

# by default select gcc
CXX=g++
CXXFLAGS=-O3
SOURCES = fraction_toolbox.cpp
HEADERS = fraction_toolbox.hpp
OBJ = fraction_toolbox.o
.SUFFIXES: .cpp
all: main
fraction_toolbox.o: fraction_toolbox.cpp fraction_toolbox.hpp
$(CXX) $(CXXFLAGS) -c fraction_toolbox.cpp -o fraction_toolbox.o
main: $(OBJ) main.cpp $(HEADERS)
$(CXX) $(CXXFLAGS) *.o main.cpp -o main
clean:
rm -f main
rm -f *.o
rm -f *.i
rm -f *.lst
rm -f output.*