replace LDFLAGS with LDLIBS

master
KatolaZ 5 years ago
parent 94468fe01b
commit f4fa44b21a
  1. 6
      Reducibility_Multiplex/Makefile

@ -1,6 +1,6 @@
CC=gcc CC=gcc
CFLAGS=-O2 CFLAGS=-O2
LDFLAGS=-lm -lgmp -lz LDLIBS=-lm -lgmp -lz
CC_RUNS=$(shell \$($(CC) --version >/dev/null )) CC_RUNS=$(shell \$($(CC) --version >/dev/null ))
@ -25,7 +25,7 @@ IS_CC_CLANG=$(shell $(CC) --version 2>/dev/null | grep -Eic '(llvm|clang)')
##$(info $$IS_CC_CLANG is [${IS_CC_CLANG}]) ##$(info $$IS_CC_CLANG is [${IS_CC_CLANG}])
ifeq ($(IS_CC_CLANG), 1) ifeq ($(IS_CC_CLANG), 1)
# compiler is CLANG # compiler is CLANG
LDFLAGS+=-lomp LDLIBS+=-lomp
endif endif
endif endif
endif endif
@ -36,5 +36,5 @@ clean:
rm -f reducibility_complexity rm -f reducibility_complexity
reducibility: reducibility_complexity.c reducibility: reducibility_complexity.c
$(CC) $(CFLAGS) $(LDFLAGS) reducibility_complexity.c -o reducibility_complexity $(CC) $(CFLAGS) reducibility_complexity.c -o reducibility_complexity

Loading…
Cancel
Save