2016-05-23 18:38:33 +02:00
|
|
|
CC = gcc
|
|
|
|
CXX = g++
|
2016-10-18 12:14:54 +02:00
|
|
|
CFLAGS = -g -O3 -Wall -std=c++0x -pthread
|
|
|
|
LIBS = -lpthread
|
2016-05-23 18:38:33 +02:00
|
|
|
LDFLAGS = -g
|
|
|
|
|
2016-10-18 08:55:01 +02:00
|
|
|
OBJECTS = Conf.o Log.o Network.o StopWatch.o Thread.o Timer.o UDPSocket.o Utils.o YSFReflector.o
|
2016-05-23 18:38:33 +02:00
|
|
|
|
|
|
|
all: YSFReflector
|
|
|
|
|
|
|
|
YSFReflector: $(OBJECTS)
|
|
|
|
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o YSFReflector
|
|
|
|
|
|
|
|
%.o: %.cpp
|
|
|
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
2020-06-25 11:12:38 +02:00
|
|
|
install:
|
|
|
|
install -m 755 YSFReflector /usr/local/bin/
|
|
|
|
|
2016-05-23 18:38:33 +02:00
|
|
|
clean:
|
|
|
|
$(RM) YSFReflector *.o *.d *.bak *~
|
2016-10-18 12:14:54 +02:00
|
|
|
|