parent
7cd548fd9b
commit
954bc4626c
@ -1,19 +1,19 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
CXX = g++
|
CXX = g++
|
||||||
CFLAGS = -g -O3 -Wall -std=c++0x
|
CFLAGS = -g -O3 -Wall -std=c++0x -pthread
|
||||||
LIBS =
|
LIBS = -lpthread
|
||||||
LDFLAGS = -g
|
LDFLAGS = -g
|
||||||
|
|
||||||
OBJECTS = Network.o StopWatch.o Timer.o UDPSocket.o Utils.o YSFReflector.o
|
OBJECTS = Network.o StopWatch.o Timer.o UDPSocket.o Utils.o YSFReflector.o
|
||||||
|
|
||||||
all: YSFReflector
|
all: YSFGateway
|
||||||
|
|
||||||
YSFReflector: $(OBJECTS)
|
YSFGateway: $(OBJECTS)
|
||||||
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o YSFReflector
|
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o YSFGateway
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CXX) $(CFLAGS) -c -o $@ $<
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) YSFReflector *.o *.d *.bak *~
|
$(RM) YSFGateway *.o *.d *.bak *~
|
||||||
|
|
Loading…
Reference in new issue