mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
update Makefiles
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1901 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -47,11 +47,14 @@ all: $(BIN)
|
|||||||
$(OBJS): %.o: %.c
|
$(OBJS): %.o: %.c
|
||||||
$(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@
|
$(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@
|
||||||
|
|
||||||
$(BIN): $(OBJS)
|
$(BIN).rnx: $(OBJS)
|
||||||
$(NXFLATLD) $(NXFLATLDFLAGS) -o $@ $(OBJS)
|
$(NXFLATLD) -r $(NXFLATLDFLAGS) -o $@ $^
|
||||||
|
|
||||||
|
$(BIN): $(BIN).rnx
|
||||||
|
touch $(BIN) # For now
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BIN) *.o core
|
rm -f $(BIN) *.o *.rnx *~ .*.swp core
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -D $(BIN) $(ROMFS_DIR)/$(BIN)
|
install -D $(BIN) $(ROMFS_DIR)/$(BIN)
|
||||||
|
|||||||
Binary file not shown.
@@ -75,11 +75,17 @@ $(LIBSTDC_STUBS_LIB):
|
|||||||
# BIN2 contains a class that implements hello world, but it is
|
# BIN2 contains a class that implements hello world, but it is
|
||||||
# not statically initialized.
|
# not statically initialized.
|
||||||
|
|
||||||
$(BIN1): $(OBJS1)
|
$(BIN1).rnx: $(OBJS1)
|
||||||
$(NXFLATLD) -o $@ $^
|
$(NXFLATLD) -r $(NXFLATLDFLAGS) -o $@ $^
|
||||||
|
|
||||||
$(BIN2): $(OBJS2) $(LIBSTDC_STUBS_LIB)
|
$(BIN1): $(BIN1).rnx
|
||||||
$(NXFLATLD) -o $@ $^
|
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.
|
# 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
|
# 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 is equivalent to BIN2 except that is uses static initializers
|
||||||
|
|
||||||
$(BIN3): $(OBJS3) $(LIBSTDC_STUBS_LIB)
|
$(BIN3).rnx: $(OBJS3) $(LIBSTDC_STUBS_LIB)
|
||||||
$(XFLATLD) --cxx -o $@ $^
|
$(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++
|
# 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
|
# NOTE: libstdc++ is not available for XFLAT as of this writing
|
||||||
#
|
#
|
||||||
#$(BIN4): $(OBJS4) $(LIBSTDC_STUBS_LIB)
|
#$(BIN4).rnx: $(OBJS4) $(LIBSTDC_STUBS_LIB)
|
||||||
# $(XFLATLD) --cxx -o $@ $^
|
# $(NXFLATLD) -r $(NXFLATLDFLAGS) -o $@ $^
|
||||||
|
#
|
||||||
|
#$(BIN4): $(BIN4).rnx
|
||||||
|
# touch $(BIN4) # For now
|
||||||
|
|
||||||
clean:
|
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)
|
user_install: $(BIN1) $(BIN2) $(BIN3) # $(BIN4)
|
||||||
install -D $(BIN1) $(ROMFS_DIR)/$(BIN1)
|
install -D $(BIN1) $(ROMFS_DIR)/$(BIN1)
|
||||||
|
|||||||
@@ -47,11 +47,14 @@ all: $(BIN)
|
|||||||
$(OBJS): %.o: %.c
|
$(OBJS): %.o: %.c
|
||||||
$(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@
|
$(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@
|
||||||
|
|
||||||
$(BIN): $(OBJS)
|
$(BIN).rnx: $(OBJS)
|
||||||
$(NXFLATLD) $(NXFLATLDFLAGS) -o $@ $(OBJS)
|
$(NXFLATLD) -r $(NXFLATLDFLAGS) -o $@ $^
|
||||||
|
|
||||||
|
$(BIN): $(BIN).rnx
|
||||||
|
touch $(BIN) # For now
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BIN) *.o core
|
rm -f $(BIN) *.o *.rnx *~ .*.swp core
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -D $(BIN) $(ROMFS_DIR)/$(BIN)
|
install -D $(BIN) $(ROMFS_DIR)/$(BIN)
|
||||||
|
|||||||
Binary file not shown.
@@ -47,11 +47,14 @@ all: $(BIN)
|
|||||||
$(OBJS): %.o: %.c
|
$(OBJS): %.o: %.c
|
||||||
$(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@
|
$(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@
|
||||||
|
|
||||||
$(BIN): $(OBJS)
|
$(BIN).rnx: $(OBJS)
|
||||||
$(NXFLATLD) $(NXFLATLDFLAGS) -o $@ $(OBJS)
|
$(NXFLATLD) -r $(NXFLATLDFLAGS) -o $@ $^
|
||||||
|
|
||||||
|
$(BIN): $(BIN).rnx
|
||||||
|
touch $(BIN) # For now
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BIN) *.o core
|
rm -f $(BIN) *.o *.rnx *~ .*.swp core
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -D $(BIN) $(ROMFS_DIR)/$(BIN)
|
install -D $(BIN) $(ROMFS_DIR)/$(BIN)
|
||||||
|
|||||||
@@ -47,11 +47,14 @@ all: $(BIN)
|
|||||||
$(OBJS): %.o: %.c
|
$(OBJS): %.o: %.c
|
||||||
$(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@
|
$(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@
|
||||||
|
|
||||||
$(BIN): $(OBJS)
|
$(BIN).rnx: $(OBJS)
|
||||||
$(NXFLATLD) $(NXFLATLDFLAGS) -o $@ $(OBJS)
|
$(NXFLATLD) -r $(NXFLATLDFLAGS) -o $@ $^
|
||||||
|
|
||||||
|
$(BIN): $(BIN).rnx
|
||||||
|
touch $(BIN) # For now
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BIN) *.o core
|
rm -f $(BIN) *.o *.rnx *~ .*.swp core
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -D $(BIN) $(ROMFS_DIR)/$(BIN)
|
install -D $(BIN) $(ROMFS_DIR)/$(BIN)
|
||||||
|
|||||||
@@ -47,11 +47,14 @@ all: $(BIN)
|
|||||||
$(OBJS): %.o: %.c
|
$(OBJS): %.o: %.c
|
||||||
$(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@
|
$(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@
|
||||||
|
|
||||||
$(BIN): $(OBJS)
|
$(BIN).rnx: $(OBJS)
|
||||||
$(NXFLATLD) $(NXFLATLDFLAGS) -o $@ $(OBJS)
|
$(NXFLATLD) -r $(NXFLATLDFLAGS) -o $@ $^
|
||||||
|
|
||||||
|
$(BIN): $(BIN).rnx
|
||||||
|
touch $(BIN) # For now
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BIN) *.o core
|
rm -f $(BIN) *.o *.rnx *~ .*.swp core
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -D $(BIN) $(ROMFS_DIR)/$(BIN)
|
install -D $(BIN) $(ROMFS_DIR)/$(BIN)
|
||||||
|
|||||||
@@ -47,11 +47,14 @@ all: $(BIN)
|
|||||||
$(OBJS): %.o: %.c
|
$(OBJS): %.o: %.c
|
||||||
$(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@
|
$(NXFLATCC) -c $(NXFLATCFLAGS) $< -o $@
|
||||||
|
|
||||||
$(BIN): $(OBJS)
|
$(BIN).rnx: $(OBJS)
|
||||||
$(NXFLATLD) $(NXFLATLDFLAGS) -o $@ $(OBJS)
|
$(NXFLATLD) -r $(NXFLATLDFLAGS) -o $@ $^
|
||||||
|
|
||||||
|
$(BIN): $(BIN).rnx
|
||||||
|
touch $(BIN) # For now
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BIN) *.o core
|
rm -f $(BIN) *.o *.rnx *~ .*.swp core
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -D $(BIN) $(ROMFS_DIR)/$(BIN)
|
install -D $(BIN) $(ROMFS_DIR)/$(BIN)
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
child_argv[0] = child_arg;
|
child_argv[0] = child_arg;
|
||||||
child_argv[1] = 0;
|
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)
|
if (ret != 0)
|
||||||
{
|
{
|
||||||
printf("Parent: task_create failed: %d\n", errno);
|
printf("Parent: task_create failed: %d\n", errno);
|
||||||
|
|||||||
Reference in New Issue
Block a user