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:
patacongo 2009-06-18 00:37:07 +00:00
parent f876eb552a
commit 855a5845ee
10 changed files with 58 additions and 28 deletions

View File

@ -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)

Binary file not shown.

View File

@ -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)

View File

@ -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)

Binary file not shown.

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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);