Browse Source

replace LDFLAGS with LDLIBS

master
KatolaZ 2 years ago
parent
commit
f4fa44b21a
  1. 6
      Reducibility_Multiplex/Makefile

6
Reducibility_Multiplex/Makefile

@ -1,6 +1,6 @@
CC=gcc
CFLAGS=-O2
LDFLAGS=-lm -lgmp -lz
LDLIBS=-lm -lgmp -lz
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}])
ifeq ($(IS_CC_CLANG), 1)
# compiler is CLANG
LDFLAGS+=-lomp
LDLIBS+=-lomp
endif
endif
endif
@ -36,5 +36,5 @@ clean:
rm -f reducibility_complexity
reducibility: reducibility_complexity.c
$(CC) $(CFLAGS) $(LDFLAGS) reducibility_complexity.c -o reducibility_complexity
$(CC) $(CFLAGS) reducibility_complexity.c -o reducibility_complexity
Loading…
Cancel
Save