RISC-V/V203/usb/scope/server/Makefile
2024-10-25 15:20:26 +02:00

20 lines
382 B
Makefile

PR = ../bin/wserver
CC = g++
AS = as
CFLAGS = -Wall -Os
CFLAGS+= -I$(HOME)/local/include
MFLAGS = -o $(PR)
LFLAGS = -L$(HOME)/local/lib -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 $@