summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f2b3257)
raw | patch | inline | side by side (parent: f2b3257)
author | Franklin S. Cooper Jr <fcooper@ti.com> | |
Thu, 1 Nov 2012 00:54:07 +0000 (19:54 -0500) | ||
committer | Franklin S. Cooper Jr <fcooper@ti.com> | |
Thu, 1 Nov 2012 00:54:07 +0000 (19:54 -0500) |
* This project was originally located in svn which stored an empty
Debug and Release directory. Since git doesn't store empty directories
the Debug and Release must be created by the makefile.
* Clean now deletes the entire Debug and Release directory not just their
contents.
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
Debug and Release directory. Since git doesn't store empty directories
the Debug and Release must be created by the makefile.
* Clean now deletes the entire Debug and Release directory not just their
contents.
Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
mem_util/makefile | patch | blob | history |
diff --git a/mem_util/makefile b/mem_util/makefile
index fee09c1439e17ad10d1da58b017e78a28557ed31..48bdd38b8a688f3e24402c0410368e1650ded889 100644 (file)
--- a/mem_util/makefile
+++ b/mem_util/makefile
$(CC) -o $@ $(OBJS_D) $(LIBS_D) $(LDFLAGS) -Wl,-Map,$(BINDIR_D)/$(NAME).map
$(OBJDIR_D)/%.o : %.c $(HDRS)
$(CC) -o $@ $(OBJS_D) $(LIBS_D) $(LDFLAGS) -Wl,-Map,$(BINDIR_D)/$(NAME).map
$(OBJDIR_D)/%.o : %.c $(HDRS)
+ @mkdir -p $(OBJDIR_D)
$(CC) $(ALL_DEBUG) $(DEFS) $(ALL_CFLAGS) -o$@ $<
# ----------------------------------------------------------------------------
$(CC) $(ALL_DEBUG) $(DEFS) $(ALL_CFLAGS) -o$@ $<
# ----------------------------------------------------------------------------
$(OBJDIR_R)/%.o : %.c $(HDRS)
$(OBJDIR_R)/%.o : %.c $(HDRS)
+ @mkdir -p $(OBJDIR_R)
$(CC) $(DEFS) $(ALL_RELEASE) $(ALL_CFLAGS) -o$@ $<
.PHONY: clean
clean:
$(CC) $(DEFS) $(ALL_RELEASE) $(ALL_CFLAGS) -o$@ $<
.PHONY: clean
clean:
- @rm -f $(OBJDIR_D)/*
- @rm -f $(OBJDIR_R)/*
+ @rm -rf $(OBJDIR_D)
+ @rm -rf $(OBJDIR_R)