Lugovtsov/project/hardware/Makefile

27 lines
443 B
Makefile
Raw Normal View History

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-01 16:18:53 +03:00
$(EXECUTABLE): main.o Device.o Generator.o Oscilloscope.o
$(CC) main.o Device.o Generator.o Oscilloscope.o -o main
main.o: main.cpp
$(CC) $(CFLAGS) main.cpp
Device.o: Device.cpp
$(CC) $(CFLAGS) Device.cpp
Generator.o: Generator.cpp
$(CC) $(CFLAGS) Generator.cpp
Oscilloscope.o: Oscilloscope.cpp
$(CC) $(CFLAGS) Oscilloscope.cpp
2022-10-31 14:07:36 +03:00
clean:
rm -f main
rm -f *.o
.PNONY: all clean