cgo

[Fork] Gopher Client
git clone https://git.jojolepro.com/cgo.git
Log | Files | Refs | README | LICENSE

commit 81cad73bb149f78655f43d3cf806c15d3109ebc4
parent 1869e3d027bc045faf2e704ecfb172367dd021df
Author: Sebastian Steinhauer <s.steinhauer@yahoo.de>
Date:   Mon, 29 Jan 2018 12:56:16 +0100

Merge pull request #9 from escondida/cflags

Makefile: respect CFLAGS and LDFLAGS
Diffstat:
MMakefile | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,11 +1,12 @@ # see cgo.c for copyright and license details PREFIX = /usr/local -CC = cc -O2 -Wall +CC = cc +CFLAGS ?= -O2 -Wall OBJ = cgo.o BIN = cgo default: $(OBJ) - $(CC) -o $(BIN) $(OBJ) + $(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(OBJ) clean: rm -f $(OBJ) $(BIN)