Skip to content

Commit

Permalink
updated make file
Browse files Browse the repository at this point in the history
  • Loading branch information
itsm3abena committed Nov 29, 2024
1 parent 418f3fb commit 4f337d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ CFLAGS = -Wall -Werror -Wextra
#
# Project files
#
SRCS = hybrid_array.c memory_manager.c test_hybrid_array.c
SRCS = test_hybrid_array.c
HEADERS = ds.h
OBJS = $(SRCS:.c=.o)
EXE = exefile

Expand Down Expand Up @@ -40,7 +41,7 @@ debug: $(DBGEXE)
$(DBGEXE): $(DBGOBJS)
$(CC) $(CFLAGS) $(DBGCFLAGS) -o $(DBGEXE) $^

$(DBGDIR)/%.o: %.c
$(DBGDIR)/%.o: %.c $(HEADERS)
$(CC) -c $(CFLAGS) $(DBGCFLAGS) -o $@ $<

#
Expand All @@ -51,7 +52,7 @@ release: $(RELEXE)
$(RELEXE): $(RELOBJS)
$(CC) $(CFLAGS) $(RELCFLAGS) -o $(RELEXE) $^

$(RELDIR)/%.o: %.c
$(RELDIR)/%.o: %.c $(HEADERS)
$(CC) -c $(CFLAGS) $(RELCFLAGS) -o $@ $<

#
Expand Down

0 comments on commit 4f337d3

Please sign in to comment.