[bd520203] | 1 | ## |
---|
| 2 | ## $Id$ |
---|
| 3 | ## |
---|
| 4 | |
---|
[6a8e52d] | 5 | include $(top_srcdir)/automake/compile.am |
---|
| 6 | include $(top_srcdir)/automake/lib.am |
---|
[bd520203] | 7 | |
---|
[633456e] | 8 | EXTRA_LIBRARIES = |
---|
| 9 | CLEANFILES = |
---|
[bd520203] | 10 | |
---|
[4078e82] | 11 | if HAS_NETWORKING |
---|
| 12 | include_rtemsdir = $(includedir)/rtems |
---|
| 13 | include_rtems_HEADERS = pty.h telnetd.h |
---|
| 14 | |
---|
[633456e] | 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) |
---|
[bd520203] | 24 | |
---|
[633456e] | 25 | noinst_DATA = libtelnetd$(LIB_VARIANT).a |
---|
[4078e82] | 26 | endif |
---|
[bd520203] | 27 | |
---|
[633456e] | 28 | EXTRA_DIST = README |
---|
[bd520203] | 29 | |
---|
[633456e] | 30 | all-local: $(PREINSTALL_FILES) |
---|
[bd520203] | 31 | |
---|
[b5d91ad] | 32 | PREINSTALL_DIRS = |
---|
[74066232] | 33 | PREINSTALL_FILES = |
---|
| 34 | |
---|
| 35 | if HAS_NETWORKING |
---|
| 36 | $(PROJECT_INCLUDE)/rtems/$(dirstamp): |
---|
[19fb5d3] | 37 | @$(mkdir_p) $(PROJECT_INCLUDE)/rtems |
---|
[74066232] | 38 | @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
[b5d91ad] | 39 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) |
---|
[74066232] | 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 | |
---|
[633456e] | 50 | CLEANFILES += $(PREINSTALL_FILES) |
---|
[b5d91ad] | 51 | DISTCLEANFILES = $(PREINSTALL_DIRS) |
---|
[0725ce32] | 52 | |
---|
[6a8e52d] | 53 | include $(top_srcdir)/automake/local.am |
---|