RISC-V/V203/usb/scope/server/Makefile
2024-11-08 21:47:36 +01:00

19 lines
329 B
Makefile

PR = ../bin/wserver
CC = g++
AS = as
CFLAGS = -Wall -Os
MFLAGS = -o $(PR)
LFLAGS = -lseasocks -lz -lpthread
all: $(PR)
OBJECTS = main.o wsclient.o
$(PR): $(OBJECTS)
$(CC) $(AFLAGS) $(MFLAGS) $(OBJECTS) $(LFLAGS)
clean:
rm -f *.o *.lst *~
%.o: %.cpp
$(CC) -std=c++17 $(AFLAGS) -c $(CFLAGS) $< -o $@
%.o: %.S
$(AS) $< -o $@