Skip to content

Commit

Permalink
Merge pull request #85 from jameshilliard/fix-make-output-dir-dependency
Browse files Browse the repository at this point in the history
Fix output_dir make dependency
  • Loading branch information
jfdelnero committed Oct 18, 2022
2 parents 73287df + d84216a commit 699def1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ objects := $(sources:src/%.c=obj/%.o)
ops_sources := $(wildcard src/mtp_operations/*.c)
ops_objects := $(ops_sources:src/mtp_operations/%.c=obj/%.o)

all: output_dir umtprd
all: umtprd

umtprd: $(objects) $(ops_objects)
${CC} -o $@ $^ $(LDFLAGS) -lpthread

$(objects): obj/%.o: src/%.c
$(objects): obj/%.o: src/%.c | output_dir
${CC} -o $@ $^ -c $(CPPFLAGS) $(CFLAGS)

$(ops_objects): obj/%.o: src/mtp_operations/%.c
$(ops_objects): obj/%.o: src/mtp_operations/%.c | output_dir
${CC} -o $@ $^ -c $(CPPFLAGS) $(CFLAGS)

output_dir:
Expand Down

0 comments on commit 699def1

Please sign in to comment.