Browse Source

use VPATH to cleanup includes

pull/20108/head
9R 1 year ago
parent
commit
cbfad2fe7b
3 changed files with 10 additions and 11 deletions
  1. +0
    -1
      keyboards/handwired/replicazeron/replicazeron.c
  2. +4
    -6
      keyboards/handwired/replicazeron/replicazeron.h
  3. +6
    -4
      keyboards/handwired/replicazeron/rules.mk

+ 0
- 1
keyboards/handwired/replicazeron/replicazeron.c View File

@ -49,7 +49,6 @@ void keyboard_post_init_kb(void) {
init_wasd_state();
#endif // THUMBSTICK_ENABLE
// FIXME: This was inside the thumbstick's ifdef, moved it out assuming it was a typo
controller_state = init_state();
keyboard_post_init_user();


+ 4
- 6
keyboards/handwired/replicazeron/replicazeron.h View File

@ -16,20 +16,18 @@
#pragma once
// FIXME: The "common/" prefixes can probably be removed using VPATH or whatever on the mk file
#include "common/state.h"
#include "state.h"
#ifdef LEDS_ENABLE
# include "common/leds.h"
# include "leds.h"
#endif
#ifdef OLED_ENABLE
# include "common/oled.h"
# include "oled.h"
#endif
#ifdef THUMBSTICK_ENABLE
# include "common/thumbstick.h"
# include "thumbstick.h"
#endif
enum kb_layers {


+ 6
- 4
keyboards/handwired/replicazeron/rules.mk View File

@ -9,22 +9,24 @@ TAP_DANCE_ENABLE = no
LEDS_ENABLE = yes
THUMBSTICK_ENABLE = yes
SRC += common/state.c
SRC += state.c
VPATH += keyboards/handwired/replicazeron/common
# redirect compilation against "handwired/replicazeron" to the stm32 variant
DEFAULT_FOLDER = handwired/replicazeron/stm32f103
ifeq ($(strip $(LEDS_ENABLE)), yes)
OPT_DEFS += -DLEDS_ENABLE
SRC += common/leds.c
SRC += leds.c
endif
ifeq ($(strip $(OLED_ENABLE)), yes)
SRC += common/oled.c
SRC += oled.c
endif
ifeq ($(strip $(THUMBSTICK_ENABLE)), yes)
OPT_DEFS += -DTHUMBSTICK_ENABLE
SRC += analog.c \
common/thumbstick.c
thumbstick.c
endif

Loading…
Cancel
Save