Skip to content

Commit

Permalink
[FIX] add homebrew directories for Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrey authored and 128keaton committed Sep 21, 2023
1 parent b719ad2 commit ecc6f5b
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,19 @@ STATSD = yes

#
CC=gcc -g

CFLAGS += -DMAXSPLITPARTS=500 -Idevices/ -I.

ifeq ($(UNAME_S),Darwin)
CFLAGS += -I/opt/homebrew/include -I/usr/local/include
else
CFLAGS += -I/usr/local/include
endif

CFLAGS += -Wall -Werror

CFLAGS += -DMAXSPLITPARTS=500 -Idevices/ -I. -I/usr/local/include -Wall -Werror
ifdef LOGFILE_SIZE
CFLAGS += -DLOGFILE_SIZE=$(LOGFILE_SIZE)
endif
ifeq ($(UNAME_S),Darwin)
CFLAGS += -I/opt/homebrew/include
endif

LDFLAGS=-L /usr/local/lib

LDFLAGS=-L /usr/local/lib -lmosquitto -lm -lcdb
ifeq ($(UNAME_S),Darwin)
LDFLAGS+= -L /opt/homebrew/lib
endif

LDFLAGS+= -lmosquitto -lm -lcdb

OBJS= util.o \
json.o \
Expand Down Expand Up @@ -91,4 +82,4 @@ clean:

clobber: clean
rm -f qtripp qlog
$(MAKE) -C devices clobber
$(MAKE) -C devices clobber

0 comments on commit ecc6f5b

Please sign in to comment.