Skip to content

Commit

Permalink
make: Fix clean target
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed Aug 4, 2024
1 parent b184ff6 commit 0982c3d
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 @@ -7,7 +7,7 @@
O ?= .
NAME ?= utils
SRC := $(wildcard src/*.c)
OBJ := $(SRC:src/%.c=$(O)/$(NAME)/%.o)
OBJ := $(SRC:%.c=%.o)
CCFLAGS ?= -Wall -Wextra -O3

ifeq ($(V),)
Expand All @@ -24,7 +24,7 @@ $(O)/lib$(NAME).a: $(OBJ)
@echo " AR $(@F)"
$(Q)$(AR) -qc $@ $^

$(O)/$(NAME)/%.o: src/%.c
$(O)/src/%.o: src/%.c
@echo " CC $<"
@mkdir -p $(@D)
$(Q)$(CC) -c $< $(CCFLAGS) -Iinclude/ -o $@
Expand Down

0 comments on commit 0982c3d

Please sign in to comment.