mirror of
https://github.com/AltraMayor/f3.git
synced 2025-09-09 15:22:40 -04:00
Merge pull request #74 from mistydemeo/set_argp_per_os
Set argp-standalone flags per-OS
This commit is contained in:
commit
e9495c16a3
13
Makefile
13
Makefile
@ -8,11 +8,14 @@ PREFIX = /usr/local
|
||||
INSTALL = install
|
||||
LN = ln
|
||||
|
||||
# ATTENTION: You may need to enable the following lines to compile F3
|
||||
# on your platform.
|
||||
#ARGP = /usr/local
|
||||
#CFLAGS += -I$(ARGP)/include
|
||||
#LDFLAGS += -L$(ARGP)/lib -largp
|
||||
ifndef OS
|
||||
OS = $(shell uname -s)
|
||||
endif
|
||||
ifneq ($(OS), Linux)
|
||||
ARGP = /usr/local
|
||||
CFLAGS += -I$(ARGP)/include
|
||||
LDFLAGS += -L$(ARGP)/lib -largp
|
||||
endif
|
||||
|
||||
all: $(TARGETS)
|
||||
extra: $(EXTRA_TARGETS)
|
||||
|
20
README.rst
20
README.rst
@ -154,23 +154,17 @@ for details.
|
||||
See https://trac.macports.org/browser/trunk/dports/sysutils/f3/Portfile
|
||||
for more information.
|
||||
|
||||
4) Set compilation flags. These following environment variables are used
|
||||
in the Makefile to locate the argp library:
|
||||
4) Build F3::
|
||||
|
||||
HomeBrew::
|
||||
|
||||
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::
|
||||
When using Homebrew, you can just run::
|
||||
|
||||
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
|
||||
--------------------------------
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user