summaryrefslogtreecommitdiffstats
path: root/services/telnetd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'services/telnetd/Makefile')
-rw-r--r--services/telnetd/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/services/telnetd/Makefile b/services/telnetd/Makefile
new file mode 100644
index 00000000..4e6a6e21
--- /dev/null
+++ b/services/telnetd/Makefile
@@ -0,0 +1,44 @@
+include ../../config.inc
+
+include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
+include $(RTEMS_CUSTOM)
+include $(PROJECT_ROOT)/make/leaf.cfg
+
+CFLAGS += -I $(INSTALL_BASE)/include
+
+CFLAGS += -w
+CFLAGS += -I include
+CFLAGS += -std=gnu99
+CFLAGS += -MT $@ -MD -MP -MF $(basename $@).d
+
+C_FILES =
+C_FILES += check_passwd.c
+C_FILES += des.c
+C_FILES += pty.c
+C_FILES += telnetd.c
+# genpw.c is native
+
+C_O_FILES = $(C_FILES:%.c=%.o)
+C_D_FILES = $(C_FILES:%.c=%.d)
+
+LIB = libtelnetd.a
+
+all: $(LIB)
+
+$(LIB): $(C_O_FILES)
+ $(AR) rcu $@ $^
+
+install: $(LIB)
+ install -d $(INSTALL_BASE)/include/rtems
+ install -c -m 644 include/rtems/pty.h $(INSTALL_BASE)/rtems
+ install -c -m 644 include/rtems/telnetd.h $(INSTALL_BASE)/rtems
+ install -c -m 644 include/passwd.h $(INSTALL_BASE)/rtems
+ install -c -m 644 $(LIB) $(INSTALL_BASE)
+
+clean:
+ rm -f $(LIB) $(C_O_FILES) $(C_D_FILES) $(GEN_FILES)
+
+-include $(C_D_FILES)
+
+doc:
+