mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Add ReaderWriterQueue and update ConcurrentQueue
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
EXT=.exe
|
||||
PLATFORM_OPTS=-static
|
||||
PLATFORM_LD_OPTS=-Wl,--no-as-needed
|
||||
else
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
EXT=
|
||||
PLATFORM_OPTS=
|
||||
PLATFORM_LD_OPTS=
|
||||
else
|
||||
EXT=
|
||||
PLATFORM_OPTS=
|
||||
PLATFORM_LD_OPTS=-lrt -Wl,--no-as-needed
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
default: unittests$(EXT)
|
||||
|
||||
unittests$(EXT): unittests.cpp ../../readerwriterqueue.h ../../atomicops.h ../common/simplethread.h ../common/simplethread.cpp minitest.h makefile
|
||||
g++ $(PLATFORM_OPTS) -std=c++11 -Wpedantic -Wall -DNDEBUG -O3 -g unittests.cpp ../common/simplethread.cpp -o unittests$(EXT) -pthread $(PLATFORM_LD_OPTS)
|
||||
|
||||
run: unittests$(EXT)
|
||||
./unittests$(EXT)
|
||||
Reference in New Issue
Block a user