19 lines
329 B
Makefile
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 $@
|