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
CXX = g++
CFLAGS = -g -O3 -Wall -std=c++0x
LIBS =
CFLAGS = -g -O3 -Wall -std=c++0x -pthread
LIBS = -lpthread
LDFLAGS = -g
OBJECTS = Network.o StopWatch.o Timer.o UDPSocket.o Utils.o YSFReflector.o
all: YSFReflector
all: YSFGateway
YSFReflector: $(OBJECTS)
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o YSFReflector
YSFGateway: $(OBJECTS)
$(CXX) $(OBJECTS) $(CFLAGS) $(LIBS) -o YSFGateway
%.o: %.cpp
$(CXX) $(CFLAGS) -c -o $@ $<
clean:
$(RM) YSFReflector *.o *.d *.bak *~
$(RM) YSFGateway *.o *.d *.bak *~

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

Loading…
Cancel
Save