Skip to content

Commit

Permalink
add missing dependences in src/Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Meiye-lj committed Jul 27, 2024
1 parent 07e90d0 commit 7832526
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,44 +25,57 @@ libck.so: $(OBJECTS)
$(LD) $(LDFLAGS) -o $(TARGET_DIR)/libck.so $(OBJECTS)

libck.a: $(OBJECTS)
$(AR) rcs $(TARGET_DIR)/libck.a $(OBJECTS)
ar rcs $(TARGET_DIR)/libck.a $(OBJECTS)

ck_array.o: $(INCLUDE_DIR)/ck_array.h $(SDIR)/ck_array.c
ck_array.o: $(INCLUDE_DIR)/ck_array.h $(SDIR)/ck_array.c $(INCLUDE_DIR)/ck_string.h $(INCLUDE_DIR)/ck_stdbool.h $(INCLUDE_DIR)/gcc/ck_cc.h $(INCLUDE_DIR)/gcc/x86_64/ck_pr.h $(INCLUDE_DIR)/gcc/ck_pr.h $(INCLUDE_DIR)/ck_malloc.h $(INCLUDE_DIR)/ck_pr.h $(INCLUDE_DIR)/ck_stdint.h $(INCLUDE_DIR)/gcc/x86_64/ck_f_pr.h $(INCLUDE_DIR)/ck_md.h $(INCLUDE_DIR)/ck_limits.h $(INCLUDE_DIR)/ck_stddef.h $(INCLUDE_DIR)/ck_cc.h
$(CC) $(CFLAGS) -c -o $(TARGET_DIR)/ck_array.o $(SDIR)/ck_array.c

ck_ec.o: $(INCLUDE_DIR)/ck_ec.h $(SDIR)/ck_ec.c $(SDIR)/ck_ec_timeutil.h
ck_ec.o: $(INCLUDE_DIR)/ck_ec.h $(SDIR)/ck_ec.c $(SDIR)/ck_ec_timeutil.h $(INCLUDE_DIR)/ck_limits.h $(INCLUDE_DIR)/ck_stdbool.h $(INCLUDE_DIR)/gcc/ck_cc.h $(INCLUDE_DIR)/ck_stdint.h $(INCLUDE_DIR)/gcc/x86_64/ck_pr.h $(INCLUDE_DIR)/gcc/x86_64/ck_f_pr.h $(INCLUDE_DIR)/ck_pr.h $(INCLUDE_DIR)/ck_stddef.h $(INCLUDE_DIR)/ck_cc.h $(INCLUDE_DIR)/gcc/ck_pr.h $(INCLUDE_DIR)/ck_md.h
$(CC) $(CFLAGS) -c -o $(TARGET_DIR)/ck_ec.o $(SDIR)/ck_ec.c

ck_epoch.o: $(INCLUDE_DIR)/ck_epoch.h $(SDIR)/ck_epoch.c $(INCLUDE_DIR)/ck_stack.h
ck_epoch.o: $(INCLUDE_DIR)/ck_epoch.h $(SDIR)/ck_epoch.c $(INCLUDE_DIR)/ck_stack.h $(INCLUDE_DIR)/ck_string.h $(INCLUDE_DIR)/ck_limits.h $(INCLUDE_DIR)/ck_stdbool.h $(INCLUDE_DIR)/gcc/ck_cc.h $(INCLUDE_DIR)/ck_stdint.h $(INCLUDE_DIR)/gcc/x86_64/ck_pr.h $(INCLUDE_DIR)/gcc/x86_64/ck_f_pr.h $(INCLUDE_DIR)/ck_backoff.h $(INCLUDE_DIR)/ck_pr.h $(INCLUDE_DIR)/ck_stddef.h $(INCLUDE_DIR)/ck_cc.h $(INCLUDE_DIR)/gcc/ck_pr.h $(INCLUDE_DIR)/ck_md.h
$(CC) $(CFLAGS) -c -o $(TARGET_DIR)/ck_epoch.o $(SDIR)/ck_epoch.c

ck_hs.o: $(INCLUDE_DIR)/ck_hs.h $(SDIR)/ck_hs.c
ck_hs.o: $(INCLUDE_DIR)/ck_hs.h $(SDIR)/ck_hs.c $(INCLUDE_DIR)/ck_string.h $(INCLUDE_DIR)/ck_stdbool.h $(INCLUDE_DIR)/gcc/ck_cc.h $(INCLUDE_DIR)/gcc/x86_64/ck_pr.h $(INCLUDE_DIR)/gcc/ck_pr.h $(INCLUDE_DIR)/ck_malloc.h $(INCLUDE_DIR)/ck_pr.h $(INCLUDE_DIR)/ck_stdint.h $(INCLUDE_DIR)/gcc/x86_64/ck_f_pr.h $(SDIR)/ck_internal.h $(INCLUDE_DIR)/ck_md.h $(INCLUDE_DIR)/ck_limits.h $(INCLUDE_DIR)/ck_stddef.h $(INCLUDE_DIR)/ck_cc.h
$(CC) $(CFLAGS) -c -o $(TARGET_DIR)/ck_hs.o $(SDIR)/ck_hs.c

ck_rhs.o: $(INCLUDE_DIR)/ck_rhs.h $(SDIR)/ck_rhs.c
ck_rhs.o: $(INCLUDE_DIR)/ck_rhs.h $(SDIR)/ck_rhs.c $(INCLUDE_DIR)/ck_string.h $(INCLUDE_DIR)/ck_stdbool.h $(INCLUDE_DIR)/gcc/ck_cc.h $(INCLUDE_DIR)/gcc/x86_64/ck_pr.h $(INCLUDE_DIR)/gcc/ck_pr.h $(INCLUDE_DIR)/ck_malloc.h $(INCLUDE_DIR)/ck_pr.h $(INCLUDE_DIR)/ck_stdint.h $(INCLUDE_DIR)/gcc/x86_64/ck_f_pr.h $(SDIR)/ck_internal.h $(INCLUDE_DIR)/ck_md.h $(INCLUDE_DIR)/ck_limits.h $(INCLUDE_DIR)/ck_stddef.h $(INCLUDE_DIR)/ck_cc.h
$(CC) $(CFLAGS) -c -o $(TARGET_DIR)/ck_rhs.o $(SDIR)/ck_rhs.c

ck_ht.o: $(INCLUDE_DIR)/ck_ht.h $(SDIR)/ck_ht.c
ck_ht.o: $(INCLUDE_DIR)/ck_ht.h $(SDIR)/ck_ht.c $(INCLUDE_DIR)/ck_string.h $(INCLUDE_DIR)/ck_stdbool.h $(INCLUDE_DIR)/gcc/ck_cc.h $(INCLUDE_DIR)/gcc/x86_64/ck_pr.h $(INCLUDE_DIR)/gcc/ck_pr.h $(INCLUDE_DIR)/ck_malloc.h $(INCLUDE_DIR)/ck_pr.h $(INCLUDE_DIR)/ck_stdint.h $(INCLUDE_DIR)/gcc/x86_64/ck_f_pr.h $(SDIR)/ck_internal.h $(SDIR)/ck_ht_hash.h $(INCLUDE_DIR)/ck_md.h $(INCLUDE_DIR)/ck_limits.h $(INCLUDE_DIR)/ck_stddef.h $(INCLUDE_DIR)/ck_cc.h
$(CC) $(CFLAGS) -c -o $(TARGET_DIR)/ck_ht.o $(SDIR)/ck_ht.c

ck_hp.o: $(SDIR)/ck_hp.c $(INCLUDE_DIR)/ck_hp.h $(INCLUDE_DIR)/ck_stack.h
ck_hp.o: $(SDIR)/ck_hp.c $(INCLUDE_DIR)/ck_hp.h $(INCLUDE_DIR)/ck_stack.h $(INCLUDE_DIR)/ck_string.h $(INCLUDE_DIR)/ck_stdbool.h $(INCLUDE_DIR)/gcc/ck_cc.h $(INCLUDE_DIR)/gcc/x86_64/ck_pr.h $(INCLUDE_DIR)/ck_stdlib.h $(INCLUDE_DIR)/gcc/ck_pr.h $(INCLUDE_DIR)/ck_pr.h $(INCLUDE_DIR)/ck_stdint.h $(INCLUDE_DIR)/gcc/x86_64/ck_f_pr.h $(INCLUDE_DIR)/ck_backoff.h $(INCLUDE_DIR)/ck_md.h $(INCLUDE_DIR)/ck_limits.h $(INCLUDE_DIR)/ck_stddef.h $(INCLUDE_DIR)/ck_cc.h
$(CC) $(CFLAGS) -c -o $(TARGET_DIR)/ck_hp.o $(SDIR)/ck_hp.c

ck_barrier_centralized.o: $(SDIR)/ck_barrier_centralized.c
ck_barrier_centralized.o: $(SDIR)/ck_barrier_centralized.c $(INCLUDE_DIR)/ck_string.h $(INCLUDE_DIR)/ck_md.h $(INCLUDE_DIR)/ck_elide.h $(INCLUDE_DIR)/ck_limits.h $(INCLUDE_DIR)/ck_stdbool.h $(INCLUDE_DIR)/spinlock/fas.h $(INCLUDE_DIR)/gcc/ck_cc.h $(INCLUDE_DIR)/ck_stdint.h $(INCLUDE_DIR)/spinlock/ticket.h $(INCLUDE_DIR)/spinlock/dec.h $(INCLUDE_DIR)/ck_barrier.h $(INCLUDE_DIR)/gcc/x86_64/ck_pr.h $(INCLUDE_DIR)/gcc/x86_64/ck_f_pr.h $(INCLUDE_DIR)/spinlock/hclh.h $(INCLUDE_DIR)/ck_backoff.h $(INCLUDE_DIR)/spinlock/clh.h $(INCLUDE_DIR)/spinlock/cas.h $(INCLUDE_DIR)/ck_pr.h $(INCLUDE_DIR)/ck_stddef.h $(INCLUDE_DIR)/ck_spinlock.h $(INCLUDE_DIR)/ck_cc.h $(INCLUDE_DIR)/spinlock/mcs.h $(INCLUDE_DIR)/gcc/ck_pr.h $(INCLUDE_DIR)/spinlock/anderson.h
$(CC) $(CFLAGS) -c -o $(TARGET_DIR)/ck_barrier_centralized.o $(SDIR)/ck_barrier_centralized.c

ck_barrier_combining.o: $(SDIR)/ck_barrier_combining.c
ck_barrier_combining.o: $(SDIR)/ck_barrier_combining.c $(INCLUDE_DIR)/ck_string.h $(INCLUDE_DIR)/ck_md.h $(INCLUDE_DIR)/ck_elide.h $(INCLUDE_DIR)/ck_limits.h $(INCLUDE_DIR)/ck_stdbool.h $(INCLUDE_DIR)/spinlock/fas.h $(INCLUDE_DIR)/gcc/ck_cc.h $(INCLUDE_DIR)/ck_stdint.h $(INCLUDE_DIR)/spinlock/ticket.h $(INCLUDE_DIR)/spinlock/dec.h $(INCLUDE_DIR)/ck_barrier.h $(INCLUDE_DIR)/gcc/x86_64/ck_pr.h $(INCLUDE_DIR)/gcc/x86_64/ck_f_pr.h $(INCLUDE_DIR)/spinlock/hclh.h $(INCLUDE_DIR)/ck_backoff.h $(INCLUDE_DIR)/spinlock/clh.h $(INCLUDE_DIR)/spinlock/cas.h $(INCLUDE_DIR)/ck_pr.h $(INCLUDE_DIR)/ck_stddef.h $(INCLUDE_DIR)/ck_spinlock.h $(INCLUDE_DIR)/ck_cc.h $(INCLUDE_DIR)/spinlock/mcs.h $(INCLUDE_DIR)/gcc/ck_pr.h $(INCLUDE_DIR)/spinlock/anderson.h
$(CC) $(CFLAGS) -c -o $(TARGET_DIR)/ck_barrier_combining.o $(SDIR)/ck_barrier_combining.c

ck_barrier_dissemination.o: $(SDIR)/ck_barrier_dissemination.c
ck_barrier_dissemination.o: $(SDIR)/ck_barrier_dissemination.c $(INCLUDE_DIR)/ck_string.h $(INCLUDE_DIR)/ck_elide.h $(INCLUDE_DIR)/ck_stdbool.h $(INCLUDE_DIR)/gcc/ck_cc.h $(INCLUDE_DIR)/ck_barrier.h $(INCLUDE_DIR)/gcc/x86_64/ck_pr.h $(INCLUDE_DIR)/ck_spinlock.h $(INCLUDE_DIR)/spinlock/mcs.h $(INCLUDE_DIR)/gcc/ck_pr.h $(INCLUDE_DIR)/spinlock/anderson.h $(INCLUDE_DIR)/spinlock/fas.h $(INCLUDE_DIR)/ck_pr.h $(INCLUDE_DIR)/ck_stdint.h $(INCLUDE_DIR)/spinlock/dec.h $(INCLUDE_DIR)/gcc/x86_64/ck_f_pr.h $(INCLUDE_DIR)/ck_backoff.h $(INCLUDE_DIR)/spinlock/clh.h $(SDIR)/ck_internal.h $(INCLUDE_DIR)/ck_md.h $(INCLUDE_DIR)/ck_limits.h $(INCLUDE_DIR)/spinlock/ticket.h $(INCLUDE_DIR)/spinlock/hclh.h $(INCLUDE_DIR)/spinlock/cas.h $(INCLUDE_DIR)/ck_stddef.h $(INCLUDE_DIR)/ck_cc.h
$(CC) $(CFLAGS) -c -o $(TARGET_DIR)/ck_barrier_dissemination.o $(SDIR)/ck_barrier_dissemination.c

ck_barrier_tournament.o: $(SDIR)/ck_barrier_tournament.c
ck_barrier_tournament.o: $(SDIR)/ck_barrier_tournament.c $(INCLUDE_DIR)/ck_string.h $(INCLUDE_DIR)/ck_elide.h $(INCLUDE_DIR)/ck_stdbool.h $(INCLUDE_DIR)/gcc/ck_cc.h $(INCLUDE_DIR)/ck_barrier.h $(INCLUDE_DIR)/gcc/x86_64/ck_pr.h $(INCLUDE_DIR)/ck_spinlock.h $(INCLUDE_DIR)/spinlock/mcs.h $(INCLUDE_DIR)/gcc/ck_pr.h $(INCLUDE_DIR)/spinlock/anderson.h $(INCLUDE_DIR)/spinlock/fas.h $(INCLUDE_DIR)/ck_pr.h $(INCLUDE_DIR)/ck_stdint.h $(INCLUDE_DIR)/spinlock/dec.h $(INCLUDE_DIR)/gcc/x86_64/ck_f_pr.h $(INCLUDE_DIR)/ck_backoff.h $(INCLUDE_DIR)/spinlock/clh.h $(SDIR)/ck_internal.h $(INCLUDE_DIR)/ck_md.h $(INCLUDE_DIR)/ck_limits.h $(INCLUDE_DIR)/spinlock/ticket.h $(INCLUDE_DIR)/spinlock/hclh.h $(INCLUDE_DIR)/spinlock/cas.h $(INCLUDE_DIR)/ck_stddef.h $(INCLUDE_DIR)/ck_cc.h
$(CC) $(CFLAGS) -c -o $(TARGET_DIR)/ck_barrier_tournament.o $(SDIR)/ck_barrier_tournament.c

ck_barrier_mcs.o: $(SDIR)/ck_barrier_mcs.c
ck_barrier_mcs.o: $(SDIR)/ck_barrier_mcs.c $(INCLUDE_DIR)/ck_string.h $(INCLUDE_DIR)/ck_md.h $(INCLUDE_DIR)/ck_elide.h $(INCLUDE_DIR)/ck_limits.h $(INCLUDE_DIR)/ck_stdbool.h $(INCLUDE_DIR)/spinlock/fas.h $(INCLUDE_DIR)/gcc/ck_cc.h $(INCLUDE_DIR)/ck_stdint.h $(INCLUDE_DIR)/spinlock/ticket.h $(INCLUDE_DIR)/spinlock/dec.h $(INCLUDE_DIR)/ck_barrier.h $(INCLUDE_DIR)/gcc/x86_64/ck_pr.h $(INCLUDE_DIR)/gcc/x86_64/ck_f_pr.h $(INCLUDE_DIR)/spinlock/hclh.h $(INCLUDE_DIR)/ck_backoff.h $(INCLUDE_DIR)/spinlock/clh.h $(INCLUDE_DIR)/spinlock/cas.h $(INCLUDE_DIR)/ck_pr.h $(INCLUDE_DIR)/ck_stddef.h $(INCLUDE_DIR)/ck_spinlock.h $(INCLUDE_DIR)/ck_cc.h $(INCLUDE_DIR)/spinlock/mcs.h $(INCLUDE_DIR)/gcc/ck_pr.h $(INCLUDE_DIR)/spinlock/anderson.h
$(CC) $(CFLAGS) -c -o $(TARGET_DIR)/ck_barrier_mcs.o $(SDIR)/ck_barrier_mcs.c


clean:
rm -rf $(TARGET_DIR)/*.dSYM $(TARGET_DIR)/*~ $(TARGET_DIR)/*.o \
$(OBJECTS) $(TARGET_DIR)/libck.a $(TARGET_DIR)/libck.so
rm -rf $(AUTODEPS)

# create a list of auto dependencies
AUTODEPS:= $(patsubst %.o,$(TARGET_DIR)/%.d, $(OBJECTS))

# include by auto dependencies
-include $(AUTODEPS)

%.o: $(TARGET_DIR)/%.d

$(TARGET_DIR)/%.d: $(SDIR)/%.c
$(CC) $(CFLAGS) -MM -MP -MF $@ $<

0 comments on commit 7832526

Please sign in to comment.