This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
openwrt_coding [2009/06/11 17:15] eric |
openwrt_coding [2013/05/21 16:12] (current) eric |
||
---|---|---|---|
Line 11: | Line 11: | ||
=====Tutorial Moved To New Location -- 7/ | =====Tutorial Moved To New Location -- 7/ | ||
- | I haven' | + | I haven' |
Line 51: | Line 51: | ||
helloworld: helloworld.o | helloworld: helloworld.o | ||
- | $(CC) $(LDFLAGS) helloworld.o -o helloworld helloworld.o: | + | $(CC) $(LDFLAGS) helloworld.o -o helloworld |
- | helloworld.c $(CC) $(CFLAGS) -c helloworld.c | + | |
+ | helloworld.o: | ||
+ | $(CC) $(CFLAGS) -c helloworld.c | ||
# remove object files and executable when user executes "make clean" | # remove object files and executable when user executes "make clean" | ||
Line 286: | Line 288: | ||
</ | </ | ||
- | Now, ssh into the router. We just copied the package to root's home directory so we are finally ready to install our program. In root's home directory, (where we end up immediately after connecting to the router via ssh) type "ipkg install helloworld_1_mipsel.ipk" | + | Now, ssh into the router. We just copied the package to root's home directory so we are finally ready to install our program. In root's home directory, (where we end up immediately after connecting to the router via ssh) type "ipkg install helloworld_1_mipsel.ipk" |
< | < |