Skip to content
Snippets Groups Projects
Commit 74a3158c authored by Oleg Hahm's avatar Oleg Hahm
Browse files

use subfolder instead of file name prefix

parent 4ac82bd5
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ endif
SRC = $(wildcard *.c)
# string array of all names replaced .c with .o
OBJ = $(SRC:%.c=${BINDIR}${PROJECT}_%.o)
OBJ = $(SRC:%.c=${BINDIR}${PROJECT}/%.o)
$(BINDIR)$(PROJECT).a: $(OBJ)
$(AD)$(AR) -rc $(BINDIR)$(PROJECT).a $(OBJ)
......@@ -87,10 +87,10 @@ $(BINDIR)$(PROJECT).a: $(OBJ)
# pull in dependency info for *existing* .o files
-include $(OBJ:.o=.d)
$(BINDIR)$(PROJECT)_%.o: %.c $(PROJDEPS)
$(BINDIR)$(PROJECT)/%.o: %.c $(PROJDEPS)
@echo; echo "Compiling.... $*.c"; echo
@test -d $(BINDIR) || mkdir -p $(BINDIR)
$(AD)$(CC) $(CFLAGS) $(INCLUDES) -c $*.c -o $(BINDIR)$(PROJECT)_$*.o
@test -d $(BINDIR)$(PROJECT) || mkdir -p $(BINDIR)$(PROJECT)
$(AD)$(CC) $(CFLAGS) $(INCLUDES) -c $*.c -o $(BINDIR)$(PROJECT)/$*.o
clean:
"$(MAKE)" -C $(RIOTBOARD)/$(BOARD) clean
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment