diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-18 00:37:07 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-06-18 00:37:07 +0000 |
commit | e89e1602fe68cedee9eee297561d7ac2c73ee465 (patch) | |
tree | a504e7470139c7f73baf8583f34627873873d55d | |
parent | d1a54833aa39c06f38bc656d0811674e9826f7d3 (diff) | |
download | nuttx-e89e1602fe68cedee9eee297561d7ac2c73ee465.tar.gz nuttx-e89e1602fe68cedee9eee297561d7ac2c73ee465.tar.bz2 nuttx-e89e1602fe68cedee9eee297561d7ac2c73ee465.zip |
update Makefiles
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1901 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/examples/nxflat/tests/errno/Makefile | 9 | ||||
-rw-r--r-- | nuttx/examples/nxflat/tests/errno/errno.o | bin | 3708 -> 0 bytes | |||
-rw-r--r-- | nuttx/examples/nxflat/tests/hello++/Makefile | 30 | ||||
-rw-r--r-- | nuttx/examples/nxflat/tests/hello/Makefile | 9 | ||||
-rw-r--r-- | nuttx/examples/nxflat/tests/hello/hello.o | bin | 3456 -> 0 bytes | |||
-rw-r--r-- | nuttx/examples/nxflat/tests/longjmp/Makefile | 9 | ||||
-rw-r--r-- | nuttx/examples/nxflat/tests/mutex/Makefile | 9 | ||||
-rw-r--r-- | nuttx/examples/nxflat/tests/pthread/Makefile | 9 | ||||
-rw-r--r-- | nuttx/examples/nxflat/tests/task/Makefile | 9 | ||||
-rw-r--r-- | nuttx/examples/nxflat/tests/task/task.c | 2 |
10 files changed, 58 insertions, 28 deletions
diff --git a/nuttx/examples/nxflat/tests/errno/Makefile b/nuttx/examples/nxflat/tests/errno/Makefile index 4c1ce8180..110886f92 100644 --- a/nuttx/examples/nxflat/tests/errno/Makefile +++ b/nuttx/examples/nxflat/tests/errno/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) diff --git a/nuttx/examples/nxflat/tests/errno/errno.o b/nuttx/examples/nxflat/tests/errno/errno.o Binary files differdeleted file mode 100644 index eada97cdb..000000000 --- a/nuttx/examples/nxflat/tests/errno/errno.o +++ /dev/null diff --git a/nuttx/examples/nxflat/tests/hello++/Makefile b/nuttx/examples/nxflat/tests/hello++/Makefile index b1c9977bc..584c8c4aa 100644 --- a/nuttx/examples/nxflat/tests/hello++/Makefile +++ b/nuttx/examples/nxflat/tests/hello++/Makefile @@ -75,11 +75,17 @@ $(LIBSTDC_STUBS_LIB): # BIN2 contains a class that implements hello world, but it is # not statically initialized. -$(BIN1): $(OBJS1) - $(NXFLATLD) -o $@ $^ +$(BIN1).rnx: $(OBJS1) + $(NXFLATLD) -r $(NXFLATLDFLAGS) -o $@ $^ -$(BIN2): $(OBJS2) $(LIBSTDC_STUBS_LIB) - $(NXFLATLD) -o $@ $^ +$(BIN1): $(BIN1).rnx + touch $(BIN1) # For now + +$(BIN2).rnx: $(OBJS2) $(LIBSTDC_STUBS_LIB) + $(NXFLATLD) -r $(NXFLATLDFLAGS) -o $@ $^ + +$(BIN2): $(BIN2).rnx + touch $(BIN2) # For now # BIN3 and BIN4 require that we include --cxx in the xflat-ld command. # This will instruct xflat-ld that we want it to put togethe the correct @@ -87,18 +93,24 @@ $(BIN2): $(OBJS2) $(LIBSTDC_STUBS_LIB) # # BIN3 is equivalent to BIN2 except that is uses static initializers -$(BIN3): $(OBJS3) $(LIBSTDC_STUBS_LIB) - $(XFLATLD) --cxx -o $@ $^ +$(BIN3).rnx: $(OBJS3) $(LIBSTDC_STUBS_LIB) + $(NXFLATLD) -r $(NXFLATLDFLAGS) -o $@ $^ + +$(BIN3): $(BIN3).rnx + touch $(BIN3) # For now # BIN4 is similar to BIN3 except that it uses the streams code from libstdc++ # # NOTE: libstdc++ is not available for XFLAT as of this writing # -#$(BIN4): $(OBJS4) $(LIBSTDC_STUBS_LIB) -# $(XFLATLD) --cxx -o $@ $^ +#$(BIN4).rnx: $(OBJS4) $(LIBSTDC_STUBS_LIB) +# $(NXFLATLD) -r $(NXFLATLDFLAGS) -o $@ $^ +# +#$(BIN4): $(BIN4).rnx +# touch $(BIN4) # For now clean: - rm -f $(BIN1) $(BIN2) $(BIN3) $(BIN4) *.o *~ core + rm -f $(BIN1) $(BIN2) $(BIN3) $(BIN4) *.o *.rnx *~ .*.swp core user_install: $(BIN1) $(BIN2) $(BIN3) # $(BIN4) install -D $(BIN1) $(ROMFS_DIR)/$(BIN1) 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) diff --git a/nuttx/examples/nxflat/tests/hello/hello.o b/nuttx/examples/nxflat/tests/hello/hello.o Binary files differdeleted file mode 100644 index 2ba7aa2ce..000000000 --- a/nuttx/examples/nxflat/tests/hello/hello.o +++ /dev/null diff --git a/nuttx/examples/nxflat/tests/longjmp/Makefile b/nuttx/examples/nxflat/tests/longjmp/Makefile index 80b94d5f8..fea6d419e 100644 --- a/nuttx/examples/nxflat/tests/longjmp/Makefile +++ b/nuttx/examples/nxflat/tests/longjmp/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) diff --git a/nuttx/examples/nxflat/tests/mutex/Makefile b/nuttx/examples/nxflat/tests/mutex/Makefile index 314ed5224..675a050eb 100644 --- a/nuttx/examples/nxflat/tests/mutex/Makefile +++ b/nuttx/examples/nxflat/tests/mutex/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) diff --git a/nuttx/examples/nxflat/tests/pthread/Makefile b/nuttx/examples/nxflat/tests/pthread/Makefile index c1103d71c..04960b7a8 100644 --- a/nuttx/examples/nxflat/tests/pthread/Makefile +++ b/nuttx/examples/nxflat/tests/pthread/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) diff --git a/nuttx/examples/nxflat/tests/task/Makefile b/nuttx/examples/nxflat/tests/task/Makefile index b71d135e5..bd93980b0 100644 --- a/nuttx/examples/nxflat/tests/task/Makefile +++ b/nuttx/examples/nxflat/tests/task/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) diff --git a/nuttx/examples/nxflat/tests/task/task.c b/nuttx/examples/nxflat/tests/task/task.c index 969409409..13490ede1 100644 --- a/nuttx/examples/nxflat/tests/task/task.c +++ b/nuttx/examples/nxflat/tests/task/task.c @@ -111,7 +111,7 @@ int main(int argc, char **argv) child_argv[0] = child_arg; child_argv[1] = 0; - ret = task_create(child_name, 50, 512, child_task, child_argv); + ret = task_create(child_name, 50, 512, child_task, (char**)child_argv); if (ret != 0) { printf("Parent: task_create failed: %d\n", errno); |