Skip to content

Commit 0f052bc

Browse files
committed
remove wildcard in makefile
1 parent 3d04d61 commit 0f052bc

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

Makefile

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,14 @@ endif
124124
#------------------------------------------------------------------------------
125125

126126
# all files in src
127-
C_SRC += $(wildcard src/*.c)
127+
C_SRC += \
128+
src/dfu_ble_svc.c \
129+
src/dfu_init.c \
130+
src/flash_nrf5x.c \
131+
src/main.c \
128132

129133
# all files in boards
130-
C_SRC += $(wildcard src/boards/*.c)
131-
132-
# all sources files in specific board
133-
C_SRC += $(wildcard src/boards/$(BOARD)/*.c)
134+
C_SRC += src/boards/boards.c
134135

135136
# nrfx
136137
C_SRC += $(NRFX_PATH)/drivers/src/nrfx_power.c
@@ -172,18 +173,25 @@ IPATH += $(SDK_PATH)/drivers_nrf/uart
172173

173174
else
174175

176+
# pinconfig is required for 840 for CF2
177+
C_SRC += src/boards/$(BOARD)/pinconfig.c
178+
175179
# USB Application ( MSC + UF2 )
176-
C_SRC += $(wildcard src/usb/*.c)
177-
C_SRC += $(wildcard src/usb/uf2/*.c)
180+
C_SRC += \
181+
src/usb/msc_uf2.c \
182+
src/usb/usb_desc.c \
183+
src/usb/usb.c \
184+
src/usb/uf2/ghostfat.c
178185

179186
# TinyUSB stack
180-
C_SRC += $(TUSB_PATH)/portable/nordic/nrf5x/dcd_nrf5x.c
181-
C_SRC += $(TUSB_PATH)/common/tusb_fifo.c
182-
C_SRC += $(TUSB_PATH)/device/usbd.c
183-
C_SRC += $(TUSB_PATH)/device/usbd_control.c
184-
C_SRC += $(TUSB_PATH)/class/cdc/cdc_device.c
185-
C_SRC += $(TUSB_PATH)/class/msc/msc_device.c
186-
C_SRC += $(TUSB_PATH)/tusb.c
187+
C_SRC += \
188+
$(TUSB_PATH)/portable/nordic/nrf5x/dcd_nrf5x.c \
189+
$(TUSB_PATH)/common/tusb_fifo.c \
190+
$(TUSB_PATH)/device/usbd.c \
191+
$(TUSB_PATH)/device/usbd_control.c \
192+
$(TUSB_PATH)/class/cdc/cdc_device.c \
193+
$(TUSB_PATH)/class/msc/msc_device.c \
194+
$(TUSB_PATH)/tusb.c
187195

188196
endif
189197

0 commit comments

Comments
 (0)