Skip to content

Commit

Permalink
Allow CFLAGS and LDFLAGS to be specified when invoking make
Browse files Browse the repository at this point in the history
  • Loading branch information
jweyrich committed Sep 3, 2023
1 parent 2b09e96 commit 262f7f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ all: bin2png png2bin
clean:
@rm -rf *.o bin2png png2bin

CFLAGS = -D_XOPEN_SOURCE=600 -std=c99 -Wall -Wextra
LDFLAGS = -lpng
CFLAGS += -D_XOPEN_SOURCE=600 -std=c99 -Wall -Wextra
LDFLAGS += -lpng

ifeq ($(PLATFORM_OS), Linux)
LDFLAGS += -lm # required for sqrt()
Expand Down

0 comments on commit 262f7f4

Please sign in to comment.