diff --git a/libowlps-resultreader/Makefile b/libowlps-resultreader/Makefile index 14fd90f..ba45de2 100644 --- a/libowlps-resultreader/Makefile +++ b/libowlps-resultreader/Makefile @@ -32,6 +32,12 @@ PICFLAG = -fPIC #STRIPFLAGS = -Wl,-s #LDFLAGS = +LIBS = -L$(LIBOWLPS_DIR) -lowlps +OS := $(shell uname) +ifeq ("$(OS)", "Linux") + LIBS += -lrt +endif + ## Cibles de compilation standard ## @@ -49,7 +55,7 @@ example : $(EXAMPLE) % : %.o $(HEADER) $(STATIC) $(CC) $(STRIPFLAGS) $(XCFLAGS) -o $@ $< \ - $(STATIC) -L$(LIBOWLPS_DIR) -lowlps -lrt + $(STATIC) $(LIBS) # Compilation de la bibliothèque statique $(STATIC) : $(OBJS)