Skip to content

Commit

Permalink
make: easier to read object targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Kijewski committed Aug 13, 2014
1 parent 9b408fd commit 2d336ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile.base
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ CXXFLAGS = $(filter-out $(CXXUWFLAGS), $(CFLAGS)) $(CXXEXFLAGS)

# compile and generate dependency info

$(BINDIR)$(MODULE)/%.o: %.c $(BINDIR)$(MODULE)/
$(OBJC): $(BINDIR)$(MODULE)/%.o: %.c $(BINDIR)$(MODULE)/
$(AD)$(CC) $(CFLAGS) $(INCLUDES) -MD -MP -c -o $@ $(abspath $<)

$(BINDIR)$(MODULE)/%.o: %.cpp $(BINDIR)$(MODULE)/
$(OBJCXX): $(BINDIR)$(MODULE)/%.o: %.cpp $(BINDIR)$(MODULE)/
$(AD)$(CXX) $(CXXFLAGS) $(INCLUDES) -MD -MP -c -o $@ $(abspath $<)

$(BINDIR)$(MODULE)/%.o: %.s $(BINDIR)$(MODULE)/
$(ASMOBJ): $(BINDIR)$(MODULE)/%.o: %.s $(BINDIR)$(MODULE)/
$(AD)$(AS) $(ASFLAGS) -o $@ $(abspath $<)

$(BINDIR)$(MODULE)/%.o: %.S $(BINDIR)$(MODULE)/
$(ASSMOBJ): $(BINDIR)$(MODULE)/%.o: %.S $(BINDIR)$(MODULE)/
$(AD)$(CC) $(CFLAGS) $(INCLUDES) -MD -MP -c -o $@ $(abspath $<)

# pull in dependency info for *existing* .o files
Expand Down

0 comments on commit 2d336ed

Please sign in to comment.