appdl: do not link with NFS library if networking is not configured for appdl.
[rtems-devel.git] / rtems-omk-template / appdl / Makefile.omk
1 default_CONFIG += CONFIG_OC_BUILD4RTEMS=y
2 default_CONFIG += CONFIG_OC_GDBSTUB=x
3 default_CONFIG += CONFIG_OC_APP_APPDL=x
4 default_CONFIG += CONFIG_OC_APP_APPDL_NET=x
5 default_CONFIG += CONFIG_OC_APP_APPDL_TELNETD=x
6
7 SUBDIRS = examples
8
9 ifeq ($(CONFIG_OC_APP_APPDL),y)
10
11 LOCAL_CONFIG_H = appl_config.h
12
13 bin_PROGRAMS = appdl
14
15 #lib_LIBRARIES = 
16
17 #include_HEADERS = 
18
19 appdl_SOURCES += init.c task_1.c
20
21 appdl_EMBEDTARFILES = rootfs
22 appdl_EXPORTSYMBOLS = y
23 #appdl_EXPORTSYMBOLS = COMPLETE
24
25 lib_LOADLIBES += bar m
26
27 ifeq ($(CONFIG_OC_APP_APPDL_NET),y)
28 lib_LOADLIBES += nfs
29 endif
30
31 ifeq ($(CONFIG_OC_APP_APPDL_TELNETD),y)
32 lib_LOADLIBES += telnetd
33 endif
34
35 endif