RISC-V/V203F6P6/programmer/software/Makefile

21 lines
337 B
Makefile
Raw Normal View History

2025-02-03 19:18:47 +01:00
PR = programmer
CC = gcc
CX = g++
VPATH = .
CFLAGS = -Os -Wall -I. -I../common
MFLAGS = -o $(PR)
all: $(PR)
OBJECTS = main.o usart.o baud.o linkprotocol.o intelhex.o
%.o: %.c
$(CC) -c $(CFLAGS) $< -o $@
%.o: %.cpp
$(CX) -std=c++17 -c $(CFLAGS) $< -o $@
$(PR): $(OBJECTS)
$(CX) $(MFLAGS) $(OBJECTS) -lpthread
clean:
rm -f *.o *~