Make lists of source files for each app available individually - i.e. for creation of dynamically loadable modules.

This commit is contained in:
oliverschmidt 2007-04-05 19:50:43 +00:00
parent e5d3453a79
commit 661a58cddb
19 changed files with 43 additions and 41 deletions

View file

@ -62,6 +62,8 @@ ifdef APPS
APPDIRS += $(addprefix $(CONTIKI)/apps/, $(APPS)) APPDIRS += $(addprefix $(CONTIKI)/apps/, $(APPS))
APPINCLUDES = $(foreach APP, $(APPS), $(CONTIKI)/apps/$(APP)/Makefile.$(APP)) APPINCLUDES = $(foreach APP, $(APPS), $(CONTIKI)/apps/$(APP)/Makefile.$(APP))
-include $(APPINCLUDES) -include $(APPINCLUDES)
APP_SOURCES = $(foreach APP, $(APPS), $($(APP)_src))
DSC_SOURCES = $(foreach APP, $(APPS), $($(APP)_dsc))
CONTIKI_SOURCEFILES += $(APP_SOURCES) $(DSC_SOURCES) CONTIKI_SOURCEFILES += $(APP_SOURCES) $(DSC_SOURCES)
endif endif

View file

@ -1,2 +1,2 @@
APP_SOURCES += about.c about_src = about.c
DSC_SOURCES += about-dsc.c about_dsc = about-dsc.c

View file

@ -1,2 +1,2 @@
APP_SOURCES += calc.c calc_src += calc.c
DSC_SOURCES += calc-dsc.c calc_dsc += calc-dsc.c

View file

@ -1,2 +1,2 @@
APP_SOURCES += cmdd.c cmdd_src = cmdd.c
DSC_SOURCES += cmdd_dsc =

View file

@ -1,2 +1,2 @@
APP_SOURCES += dhcp.c dhcpc.c dhcp_src = dhcp.c dhcpc.c
DSC_SOURCES += dhcp-dsc.c dhcp_dsc = dhcp-dsc.c

View file

@ -1,2 +1,2 @@
APP_SOURCES += directory.c directory_src = directory.c
DSC_SOURCES += directory-dsc.c directory_dsc = directory-dsc.c

View file

@ -1,2 +1,2 @@
APP_SOURCES += editor.c memb.c ctk-filedialog.c editor_src = editor.c memb.c ctk-filedialog.c
DSC_SOURCES += editor-dsc.c editor_dsc = editor-dsc.c

View file

@ -1,3 +1,3 @@
APP_SOURCES += email.c smtp-socket.c smtp-strings.c ctk-textentry-multiline.c \ email_src = email.c smtp-socket.c smtp-strings.c ctk-textentry-multiline.c \
psock.c uipbuf.c memb.c psock.c uipbuf.c memb.c
DSC_SOURCES += email-dsc.c email_dsc = email-dsc.c

View file

@ -1,2 +1,2 @@
APP_SOURCES += ftp.c ftpc.c memb.c tfp_src = ftp.c ftpc.c memb.c
DSC_SOURCES += ftp-dsc.c ftp_dsc = ftp-dsc.c

View file

@ -1,3 +1,3 @@
APP_SOURCES += irc.c ircc.c psock.c uipbuf.c ircc-strings.c \ irc_src = irc.c ircc.c psock.c uipbuf.c ircc-strings.c \
ctk-textentry-cmdline.c ctk-textentry-cmdline.c
DSC_SOURCES += irc-dsc.c irc_dsc = irc-dsc.c

View file

@ -1,2 +1,2 @@
APP_SOURCES += netconf.c netconf_src = netconf.c
DSC_SOURCES += netconf-dsc.c netconf_dsc = netconf-dsc.c

View file

@ -1,2 +1,2 @@
APP_SOURCES += process-list.c process-list_src = process-list.c
DSC_SOURCES += process-list-dsc.c process-list_dsc = process-list-dsc.c

View file

@ -1,2 +1,2 @@
APP_SOURCES += program-handler.c program-handler_src = program-handler.c
DSC_SOURCES += program-handler_dsc =

View file

@ -1,2 +1,2 @@
APP_SOURCES += shell-gui.c shell.c ctk-textentry-cmdline.c shell_src = shell-gui.c shell.c ctk-textentry-cmdline.c
DSC_SOURCES += shell-dsc.c shell_dsc = shell-dsc.c

View file

@ -1,2 +1,2 @@
APP_SOURCES += simpletelnet.c telnet.c telnet_src = simpletelnet.c telnet.c
DSC_SOURCES += telnet-dsc.c telnet_dsc = telnet-dsc.c

View file

@ -1,3 +1,3 @@
APP_SOURCES += telnetd.c shell.c telnetd_src = telnetd.c shell.c
DSC_SOURCES += telnetd-dsc.c telnetd_dsc = telnetd-dsc.c
APPDIRS += $(CONTIKI)/apps/shell APPDIRS += $(CONTIKI)/apps/shell

View file

@ -1,2 +1,2 @@
APP_SOURCES += vnc.c vnc-viewer.c vnc-draw.c vnc_src = vnc.c vnc-viewer.c vnc-draw.c
DSC_SOURCES += vnc-dsc.c vnc_dsc = vnc-dsc.c

View file

@ -1,3 +1,3 @@
APP_SOURCES += www.c webclient.c http-strings.c http-user-agent-string.c \ webbrowser_src = www.c webclient.c http-strings.c http-user-agent-string.c \
htmlparser.c html-strings.c arg.c htmlparser.c html-strings.c arg.c
DSC_SOURCES += www-dsc.c webbrowser_dsc = www-dsc.c

View file

@ -1,6 +1,6 @@
APP_SOURCES += webserver-nogui.c httpd.c http-strings.c psock.c uipbuf.c \ webserver_src = webserver-nogui.c httpd.c http-strings.c psock.c uipbuf.c \
memb.c httpd-fs.c httpd-cgi.c memb.c httpd-fs.c httpd-cgi.c
DSC_SOURCES += webserver-dsc.c webserver_dsc = webserver-dsc.c
#$(CONTIKI)/apps/webserver/http-strings.c: $(CONTIKI)/apps/webserver/http-strings #$(CONTIKI)/apps/webserver/http-strings.c: $(CONTIKI)/apps/webserver/http-strings
# cd $(CONTIKI)/apps/webserver/; $(CONTIKI)/tools/makestrings $< # cd $(CONTIKI)/apps/webserver/; $(CONTIKI)/tools/makestrings $<