summaryrefslogtreecommitdiff
path: root/nuttx/examples/nxflat/tests/hello/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/examples/nxflat/tests/hello/Makefile')
-rw-r--r--nuttx/examples/nxflat/tests/hello/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/nuttx/examples/nxflat/tests/hello/Makefile b/nuttx/examples/nxflat/tests/hello/Makefile
index c8cbf6112..78492d59f 100644
--- a/nuttx/examples/nxflat/tests/hello/Makefile
+++ b/nuttx/examples/nxflat/tests/hello/Makefile
@@ -47,11 +47,14 @@ all: $(BIN)
$(OBJS): %.o: %.c
$(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@
-$(BIN): $(OBJS)
- $(NXFLATLD) $(NXFLATLDFLAGS) -o $@ $(OBJS)
+$(BIN).rnx: $(OBJS)
+ $(NXFLATLD) -r $(NXFLATLDFLAGS) -o $@ $^
+
+$(BIN): $(BIN).rnx
+ touch $(BIN) # For now
clean:
- rm -f $(BIN) *.o core
+ rm -f $(BIN) *.o *.rnx *~ .*.swp core
install:
install -D $(BIN) $(ROMFS_DIR)/$(BIN)