Skip to content

Commit

Permalink
Check for pre-compile errors before building
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoles committed Feb 5, 2024
1 parent cc131d4 commit 843e00a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ $(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
pre-build :
@echo "Building $(OBJ_DIR) ..."
mkdir -p "$(OBJ_DIR)"
# check for pre-compile errors before building
$(CC) $(ALL_CFLAGS) $(ALL_LDFLAGS) $(SRC_DIR)/kasld.h


.PHONY: build
build : pre-build $(OBJ_FILES)
Expand Down

0 comments on commit 843e00a

Please sign in to comment.