Tell gcc where to find brew-installed OpenSSL

This commit is contained in:
Brandon Rhodes 2022-10-16 22:07:49 -04:00
parent b7bfc6eb31
commit 95008c9f74
1 changed files with 10 additions and 3 deletions

View File

@ -28,11 +28,18 @@ ifndef MOTIFL
MOTIFL = /usr/lib
endif
# for linux and Apple OS X
# For Linux and Apple OS X
UNAME_S = $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
PLATI = -I/usr/local/opt/openssl@3/include -I/opt/X11/include
PLATL = -L/usr/local/opt/openssl@3/lib -L/opt/X11/lib
endif
CC = gcc
CLDFLAGS = -g
CFLAGS = $(LIBINC) $(CLDFLAGS) -O2 -Wall -I$(MOTIFI) -I/opt/X11/include
LDFLAGS = $(LIBLNK) $(CLDFLAGS) -L$(MOTIFL) -L/opt/X11/lib
CFLAGS = $(LIBINC) $(CLDFLAGS) -O2 -Wall -I$(MOTIFI) $(PLATI)
LDFLAGS = $(LIBLNK) $(CLDFLAGS) -L$(MOTIFL) $(PLATL)
XLIBS = -lXm -lXt -lXext -lXmu -lX11
LIBS = $(XLIBS) $(LIBLIB) -lm -lssl