1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | include $(top_srcdir)/automake/compile.am |
---|
6 | include $(top_srcdir)/automake/lib.am |
---|
7 | |
---|
8 | EXTRA_LIBRARIES = |
---|
9 | CLEANFILES = |
---|
10 | |
---|
11 | if HAS_NETWORKING |
---|
12 | include_rtemsdir = $(includedir)/rtems |
---|
13 | include_rtems_HEADERS = pty.h telnetd.h |
---|
14 | |
---|
15 | EXTRA_LIBRARIES += libtelnetd.a |
---|
16 | CLEANFILES += libtelnetd.a |
---|
17 | libtelnetd_a_SOURCES = pty.c pty.h telnetd.c telnetd.h icmds.c |
---|
18 | libtelnetd_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) |
---|
19 | |
---|
20 | EXTRA_LIBRARIES += libtelnetd_g.a |
---|
21 | CLEANFILES += libtelnetd_g.a |
---|
22 | libtelnetd_g_a_SOURCES = $(libtelnetd_a_SOURCES) |
---|
23 | libtelnetd_g_a_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) |
---|
24 | |
---|
25 | noinst_DATA = libtelnetd$(LIB_VARIANT).a |
---|
26 | endif |
---|
27 | |
---|
28 | EXTRA_DIST = README |
---|
29 | |
---|
30 | all-local: $(PREINSTALL_FILES) |
---|
31 | |
---|
32 | PREINSTALL_DIRS = |
---|
33 | PREINSTALL_FILES = |
---|
34 | |
---|
35 | if HAS_NETWORKING |
---|
36 | $(PROJECT_INCLUDE)/rtems/$(dirstamp): |
---|
37 | @$(mkdir_p) $(PROJECT_INCLUDE)/rtems |
---|
38 | @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
39 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
40 | |
---|
41 | $(PROJECT_INCLUDE)/rtems/pty.h: pty.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
42 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/pty.h |
---|
43 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/pty.h |
---|
44 | |
---|
45 | $(PROJECT_INCLUDE)/rtems/telnetd.h: telnetd.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
46 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/telnetd.h |
---|
47 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/telnetd.h |
---|
48 | endif |
---|
49 | |
---|
50 | CLEANFILES += $(PREINSTALL_FILES) |
---|
51 | DISTCLEANFILES = $(PREINSTALL_DIRS) |
---|
52 | |
---|
53 | include $(top_srcdir)/automake/local.am |
---|