Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
lucavallin authored Oct 24, 2023
1 parent b20faac commit 128700f
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 @@ -25,7 +25,7 @@ FORMATTER := clang-format-18
# -pedantic: Enable pedantic warnings
# -lm: Link to libm
CFLAGS := -std=gnu17 -D _GNU_SOURCE -D __STDC_WANT_LIB_EXT1__ -Wall -Wextra -pedantic
LFLAGS := -lm
LDFLAGS := -lm

ifeq ($(debug), 1)
CFLAGS := $(CFLAGS) -g -O0
Expand All @@ -37,7 +37,7 @@ endif

# Build executable
$(NAME): format lint dir $(OBJS)
$(CC) $(CFLAGS) $(LFLAGS) -o $(BIN_DIR)/$@ $(patsubst %, build/%, $(OBJS))
$(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN_DIR)/$@ $(patsubst %, build/%, $(OBJS))

# Build object files and third-party libraries
$(OBJS): dir
Expand Down

0 comments on commit 128700f

Please sign in to comment.