Skip to content

Commit

Permalink
Makefile: move variable definitions on top
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
  • Loading branch information
noxdafox committed Sep 4, 2023
1 parent ccde8c0 commit f93cb88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ CLIPS_SOURCE_URL ?= "https://sourceforge.net/projects/clipsrules/files/CLIPS/6.4
MAKEFILE_NAME ?= makefile
SHARED_INCLUDE_DIR ?= /usr/local/include
SHARED_LIBRARY_DIR ?= /usr/local/lib
TARGET_ARCH ?= $(shell uname -m)
LDLIBS ?= -lm

# platform detection
PLATFORM = $(shell uname -s)
Expand All @@ -18,8 +20,6 @@ clips_source:
unzip -jo clips.zip -d clips_source

ifeq ($(PLATFORM),Darwin) # macOS
TARGET_ARCH = $(shell uname -m)
LDLIBS = -lm
ifneq "$(wildcard /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib)" ""
LDLIBS += -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
endif
Expand Down

0 comments on commit f93cb88

Please sign in to comment.