Skip to content

Commit

Permalink
use Makefile.base for shell_commands
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegHahm committed Oct 29, 2013
1 parent 07db2fd commit 94454f4
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions sys/shell/commands/Makefile
Expand Up @@ -38,18 +38,5 @@ DEP = $(SRC:%.c=$(BINDIR)%.d)

MODULE =shell_commands

$(BINDIR)$(MODULE).a: $(OBJ)
$(AR) rc $(BINDIR)$(MODULE).a $(OBJ)
include $(RIOTBASE)/Makefile.base

# pull in dependency info for *existing* .o files
-include $(OBJ:.o=.d)

# compile and generate dependency info
$(BINDIR)%.o: %.c
$(CC) $(CFLAGS) $(INCLUDES) -c $*.c -o $(BINDIR)$*.o
$(CC) $(CFLAGS) $(INCLUDES) -MM $*.c > $(BINDIR)$*.d
@printf "$(BINDIR)"|cat - $(BINDIR)$*.d > /tmp/riot_out && mv /tmp/riot_out $(BINDIR)$*.d

# remove compilation products
clean::
rm -f $(BINDIR)$(MODULE).a $(OBJ) $(DEP) $(ASMOBJ)

0 comments on commit 94454f4

Please sign in to comment.