Merge pull request #74 from mistydemeo/set_argp_per_os

Set argp-standalone flags per-OS
This commit is contained in:
Michel Machado 2018-01-31 10:27:01 -05:00 committed by GitHub
commit e9495c16a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 18 deletions

View File

@ -8,11 +8,14 @@ PREFIX = /usr/local
INSTALL = install INSTALL = install
LN = ln LN = ln
# ATTENTION: You may need to enable the following lines to compile F3 ifndef OS
# on your platform. OS = $(shell uname -s)
#ARGP = /usr/local endif
#CFLAGS += -I$(ARGP)/include ifneq ($(OS), Linux)
#LDFLAGS += -L$(ARGP)/lib -largp ARGP = /usr/local
CFLAGS += -I$(ARGP)/include
LDFLAGS += -L$(ARGP)/lib -largp
endif
all: $(TARGETS) all: $(TARGETS)
extra: $(EXTRA_TARGETS) extra: $(EXTRA_TARGETS)

View File

@ -154,23 +154,17 @@ for details.
See https://trac.macports.org/browser/trunk/dports/sysutils/f3/Portfile See https://trac.macports.org/browser/trunk/dports/sysutils/f3/Portfile
for more information. for more information.
4) Set compilation flags. These following environment variables are used 4) Build F3::
in the Makefile to locate the argp library:
HomeBrew:: When using Homebrew, you can just run::
export CFLAGS="$CFLAGS -I/usr/local/include/"
export LDFLAGS="$LDFLAGS -L/usr/local/lib/ -largp"
MacPorts::
export CFLAGS="$CFLAGS -I/opt/local/include/"
export LDFLAGS="$LDFLAGS -L/opt/local/lib/ -largp"
5) Build F3::
make make
When using MacPorts, you will need to pass the location where MacPorts
installed argp-standalone::
make ARGP=/opt/local
The extra applications for Linux The extra applications for Linux
-------------------------------- --------------------------------