2022-11-01 16:18:53 +03:00
|
|
|
CC=g++
|
|
|
|
CFLAGS=-c
|
|
|
|
EXECUTABLE=start
|
2022-10-31 14:07:36 +03:00
|
|
|
|
2022-11-01 16:18:53 +03:00
|
|
|
all: $(EXECUTABLE)
|
2022-10-31 14:07:36 +03:00
|
|
|
|
2022-11-28 18:31:51 +03:00
|
|
|
$(EXECUTABLE): main.o Generator.o Oscilloscope.o
|
|
|
|
$(CC) main.o Generator.o Oscilloscope.o -o main
|
2022-11-01 16:18:53 +03:00
|
|
|
|
|
|
|
main.o: main.cpp
|
|
|
|
$(CC) $(CFLAGS) main.cpp
|
|
|
|
|
2022-11-28 18:31:51 +03:00
|
|
|
Generator.o: Generator.cpp Generator.hpp
|
2022-11-01 16:18:53 +03:00
|
|
|
$(CC) $(CFLAGS) Generator.cpp
|
|
|
|
|
2022-11-28 18:31:51 +03:00
|
|
|
Oscilloscope.o: Oscilloscope.cpp Oscilloscope.hpp
|
2022-11-01 16:18:53 +03:00
|
|
|
$(CC) $(CFLAGS) Oscilloscope.cpp
|
2022-10-31 14:07:36 +03:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f main
|
|
|
|
rm -f *.o
|
|
|
|
|
|
|
|
.PNONY: all clean
|