1
0
Fork 0

Fix Linux threading compile issues.

ycs232-kbc
Jonathan Naylor 9 years ago
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 *~

@ -61,6 +61,8 @@ void CThread::sleep(unsigned int ms)
#else #else
#include <unistd.h>
CThread::CThread() : CThread::CThread() :
m_thread() m_thread()
{ {

Loading…
Cancel
Save