Permalink
Browse files

Merge pull request #35 from mtheall/master

ftpd
  • Loading branch information...
fincs committed May 15, 2012
2 parents 262991a + d962aeb commit b03a976174219ded2823719babb91e07a06a5d1b
Showing with 883 additions and 0 deletions.
  1. +11 −0 apps/unixtools/README.md
  2. +40 −0 apps/unixtools/ftpd/Makefile
  3. +832 −0 apps/unixtools/ftpd/source/main.c
View
@@ -40,6 +40,17 @@ Usage:
cp <SOURCE FILE>... <TARGET DIRECTORY>
cp <SOURCE FILE> <TARGET FILE>
+ftpd
+----
+
+FTP Server
+
+Usage:
+
+ ftpd
+
+Connect with a standard FTP client. If you get a message "Not enough space", you may need to wait up to five minutes due to dswifi limitations.
+
host
----
@@ -0,0 +1,40 @@
+#---------------------------------------------------------------------------------
+.SUFFIXES:
+#---------------------------------------------------------------------------------
+
+ifeq ($(strip $(DEVKITPRO)),)
+$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro")
+endif
+
+ifeq ($(strip $(DEVKITARM)),)
+$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
+endif
+
+ifeq ($(strip $(FEOSSDK)),)
+$(error "Please set FEOSSDK in your environment. export FEOSSDK=<path to>FeOS/sdk")
+endif
+
+FEOSMK = $(FEOSSDK)/mk
+
+#---------------------------------------------------------------------------------
+# TARGET is the name of the output
+# BUILD is the directory where object files & intermediate files will be placed
+# SOURCES is a list of directories containing source code
+# DATA is a list of directories containing data files
+# INCLUDES is a list of directories containing header files
+#---------------------------------------------------------------------------------
+TARGET := $(shell basename $(CURDIR))
+BUILD := build
+SOURCES := source
+DATA := data
+INCLUDES := include
+
+CONF_USERLIBS := feoswifi
+CONF_LIBS := -lfeoswifi
+CONF_DEFINES =
+
+include $(FEOSMK)/app.mk
+
+install: all
+ @cp $(TARGET).fx2 $(FEOSDEST)/data/FeOS/bin/$(TARGET).fx2 || exit 1
+
Oops, something went wrong.

0 comments on commit b03a976

Please sign in to comment.