diff options
author | Christian Pointner <equinox@spreadspace.org> | 2018-11-23 00:10:03 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2018-11-23 00:10:03 +0100 |
commit | c523cf9e086233b35feb970217dea58e3dd7c372 (patch) | |
tree | 4bd2799f78298cc842ce6f44056940553dd6e4c2 /fastled.mk | |
parent | show error if the defined board is not known (diff) |
fix cyclic deps for external libs
Diffstat (limited to 'fastled.mk')
-rw-r--r-- | fastled.mk | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -30,12 +30,16 @@ CXXFLAGS += -DNEED_CXX_BITS CXXFLAGS += $(FASTLED_OPTS) OBJ = $(SRC:%.cpp=%.o) +OBJ_DEP = dep-fastled--arduino-stub.o -libfastled.a: $(OBJ) - $(AR) $@ $(OBJ) +libfastled.a: $(OBJ) $(OBJ_DEP) + $(AR) $@ $(OBJ) $(OBJ_DEP) %.o: %.cpp $(CXX) -c $(CXXFLAGS) $< -o $@ +dep-fastled--%.o: $(LIB_DIR)/%.cpp + $(CXX) $(CXXFLAGS) -c $< -o $@ + clean: rm -f $(SRC:%.cpp=%.o) |