Skip to content

Commit

Permalink
Makefile: Made it so that the default set of libraries is defined at …
Browse files Browse the repository at this point in the history
…the top of libs.mk instead of an obscure place inside of apps.mk.
  • Loading branch information
DavidEGrayson committed Apr 13, 2011
1 parent 718b5d6 commit 3ecaeaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
define APP_template

APP_RELS := $$(patsubst %.c,%.rel, $$(wildcard apps/$(1)/*.c)) $$(patsubst %.s,%.rel, $$(wildcard apps/$(1)/*.s))
APP_LIBS := dma.lib radio_com.lib radio_link.lib radio_mac.lib radio_registers.lib random.lib uart.lib usb.lib usb_cdc_acm.lib wixel.lib adc.lib gpio.lib
APP_LIBS := $$(DEFAULT_LIBRARIES)
-include apps/$(1)/options.mk
APP_LIBS := $$(foreach lib, $$(APP_LIBS), libraries/lib/$$(lib))

Expand Down
3 changes: 3 additions & 0 deletions libraries/libs.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
DEFAULT_LIBRARIES = radio_com.lib radio_link.lib radio_mac.lib radio_registers.lib \
random.lib uart.lib usb.lib usb_cdc_acm.lib wixel.lib adc.lib gpio.lib dma.lib

# This template defines the things we want to add to the makefile for each library.
define LIB_template

Expand Down

0 comments on commit 3ecaeaf

Please sign in to comment.