Skip to content

Commit

Permalink
Makefile: respect CFLAGS and LDFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivy Foster committed Jan 26, 2018
1 parent ca69bbb commit aa65d36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit aa65d36

Please sign in to comment.