summaryrefslogtreecommitdiffstats
path: root/nuttx/examples/nxflat/tests/pthread/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/examples/nxflat/tests/pthread/Makefile')
-rw-r--r--nuttx/examples/nxflat/tests/pthread/Makefile23
1 files changed, 14 insertions, 9 deletions
diff --git a/nuttx/examples/nxflat/tests/pthread/Makefile b/nuttx/examples/nxflat/tests/pthread/Makefile
index 7008ec7768..27da42e7cd 100644
--- a/nuttx/examples/nxflat/tests/pthread/Makefile
+++ b/nuttx/examples/nxflat/tests/pthread/Makefile
@@ -35,7 +35,6 @@
-include $(TOPDIR)/.config # Current configuration
-include $(TOPDIR)/Make.defs # Basic make info
-include ../Make.defs # NXFLAT make info
BIN = pthread
@@ -48,26 +47,32 @@ R2OBJ = $(R2SRC:.S=.o)
all: $(BIN)
$(R1OBJS): %.o: %.c
- $(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@
+ @echo "CC: $<"
+ @$(CC) -c $(CPICFLAGS) $< -o $@
$(R2OBJ): %.o: %.S
- $(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@
+ @echo "AS: $<"
+ @$(CC) -c $(CPICFLAGS) $< -o $@
$(BIN).r1: $(R1OBJS)
- $(NXFLATLD) $(NXFLATLDFLAGS1) -o $@ $^
+ @echo "LD: $<"
+ @$(LD) $(NXFLATLDFLAGS1) -o $@ $^
$(R2SRC): $(BIN).r1
- $(MKNXFLAT) -o $@ $^
+ @echo "MK: $<"
+ @$(MKNXFLAT) -o $@ $^
$(BIN).r2: $(R2OBJ)
- $(NXFLATLD) $(NXFLATLDFLAGS2) -o $@ $(R1OBJS) $(R2OBJ)
+ @echo "LD: $<"
+ @$(LD) $(NXFLATLDFLAGS2) -o $@ $(R1OBJS) $(R2OBJ)
$(BIN): $(BIN).r2
- $(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
+ @echo "LD: $<"
+ @$(LDNXFLAT) $(LDNXFLATFLAGS) -o $@ $^
clean:
- rm -f $(BIN) $(R2SRC) *.o *.r1 *.r2 *~ .*.swp core
+ @rm -f $(BIN) $(R2SRC) *.o *.r1 *.r2 *~ .*.swp core
install:
- install -D $(BIN) $(ROMFS_DIR)/$(BIN)
+ @install -D $(BIN) $(ROMFS_DIR)/$(BIN)