TARGET = adb_usb
# Directory common source filess exist
-COMMON_DIR = ..
+TOP_DIR = ..
# Directory keyboard dependent files exist
TARGET_DIR = .
-include $(COMMON_DIR)/pjrc.mk
-include $(COMMON_DIR)/common.mk
+include $(TOP_DIR)/protocol/pjrc.mk
+include $(TOP_DIR)/protocol.mk
+include $(TOP_DIR)/common.mk
+include $(TOP_DIR)/rules.mk
endif
# Search Path
-VPATH += $(COMMON_DIR)
-
-
-include $(COMMON_DIR)/rules.mk
+VPATH += $(TOP_DIR)/common
TARGET = hbk
# Directory common source filess exist
-COMMON_DIR = ..
+TOP_DIR = ..
# Directory keyboard dependent files exist
TARGET_DIR = .
-include $(COMMON_DIR)/pjrc.mk
-include $(COMMON_DIR)/common.mk
+include $(TOP_DIR)/protocol/pjrc.mk
+include $(TOP_DIR)/protocol.mk
+include $(TOP_DIR)/common.mk
+include $(TOP_DIR)/rules.mk
TARGET = hhkb_iwrap
# Directory common source filess exist
-COMMON_DIR = ..
+TOP_DIR = ..
# Directory keyboard dependent files exist
TARGET_DIR = .
# Search Path
VPATH = $(TARGET_DIR)
-include $(COMMON_DIR)/iwrap.mk
+include $(TOP_DIR)/protocol/iwrap.mk
# To be swatchable btween Bluetooth and USB. Comment out if you don't need USB.
-include $(COMMON_DIR)/vusb.mk
-include $(COMMON_DIR)/common.mk
+include $(TOP_DIR)/protocol/vusb.mk
+include $(TOP_DIR)/protocol.mk
+include $(TOP_DIR)/common.mk
+include $(TOP_DIR)/rules.mk
TARGET = hhkb_pjrc
# Directory common source filess exist
-COMMON_DIR = ..
+TOP_DIR = ..
# Directory keyboard dependent files exist
TARGET_DIR = .
# Search Path
VPATH = $(TARGET_DIR)
-include $(COMMON_DIR)/pjrc.mk
-include $(COMMON_DIR)/common.mk
+include $(TOP_DIR)/protocol/pjrc.mk
+include $(TOP_DIR)/protocol.mk
+include $(TOP_DIR)/common.mk
+include $(TOP_DIR)/rules.mk
TARGET = hhkb_vusb
# Directory common source filess exist
-COMMON_DIR = ..
+TOP_DIR = ..
# Directory keyboard dependent files exist
TARGET_DIR = .
# Search Path
VPATH = $(TARGET_DIR)
-include $(COMMON_DIR)/vusb.mk
-include $(COMMON_DIR)/common.mk
+include $(TOP_DIR)/protocol/vusb.mk
+include $(TOP_DIR)/protocol.mk
+include $(TOP_DIR)/common.mk
+include $(TOP_DIR)/rules.mk
TARGET = m0110
# Directory common source filess exist
-COMMON_DIR = ..
+TOP_DIR = ..
# Directory keyboard dependent files exist
TARGET_DIR = .
-include $(COMMON_DIR)/pjrc.mk
-include $(COMMON_DIR)/common.mk
+include $(TOP_DIR)/protocol/pjrc.mk
+include $(TOP_DIR)/protocol.mk
+include $(TOP_DIR)/common.mk
+include $(TOP_DIR)/rules.mk
hasu: EXTRAFLAGS += -DHASU
hasu: all
TARGET = macway
# Directory common source filess exist
-COMMON_DIR = ..
+TOP_DIR = ..
# Directory keyboard dependent files exist
TARGET_DIR = .
-include $(COMMON_DIR)/pjrc.mk
-include $(COMMON_DIR)/common.mk
+include $(TOP_DIR)/protocol/pjrc.mk
+include $(TOP_DIR)/protocol.mk
+include $(TOP_DIR)/common.mk
+include $(TOP_DIR)/rules.mk
# Search Path
-VPATH += $(COMMON_DIR)/iwrap
+VPATH += $(TOP_DIR)/protocol/iwrap
# Search Path
-VPATH += $(COMMON_DIR):$(COMMON_DIR)/pjrc
+VPATH += $(TOP_DIR)/protocol/pjrc
# Option modules
# Search Path
-VPATH += $(COMMON_DIR)/vusb:$(COMMON_DIR)/vusb/usbdrv
+VPATH += $(TOP_DIR)/protocol/vusb:$(TOP_DIR)/protocol/vusb/usbdrv
TARGET = ps2_usb_pjrc
# Directory common source filess exist
-COMMON_DIR = ..
+TOP_DIR = ..
# Directory keyboard dependent files exist
TARGET_DIR = .
-include $(COMMON_DIR)/pjrc.mk
-include $(COMMON_DIR)/common.mk
+include $(TOP_DIR)/protocol/pjrc.mk
+include $(TOP_DIR)/protocol.mk
+include $(TOP_DIR)/common.mk
+include $(TOP_DIR)/rules.mk
TARGET = ps2_usb_pjrc_usart
# Directory common source filess exist
-COMMON_DIR = ..
+TOP_DIR = ..
# Directory keyboard dependent files exist
TARGET_DIR = .
-include $(COMMON_DIR)/pjrc.mk
-include $(COMMON_DIR)/common.mk
+include $(TOP_DIR)/protocol/pjrc.mk
+include $(TOP_DIR)/protocol.mk
+include $(TOP_DIR)/common.mk
+include $(TOP_DIR)/rules.mk
TARGET = ps2_usb_vusb
# Directory common source filess exist
-COMMON_DIR = ..
+TOP_DIR = ..
# Directory keyboard dependent files exist
TARGET_DIR = .
-include $(COMMON_DIR)/vusb.mk
-include $(COMMON_DIR)/common.mk
+include $(TOP_DIR)/protocol/vusb.mk
+include $(TOP_DIR)/protocol.mk
+include $(TOP_DIR)/common.mk
+include $(TOP_DIR)/rules.mk
CFLAGS += -Wa,-adhlns=$(@:%.o=%.lst)
CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))
CFLAGS += $(CSTANDARD)
-CFLAGS += -include $(CONFIG_H)
+ifdef CONFIG_H
+ CFLAGS += -include $(CONFIG_H)
+endif
#---------------- Compiler Options C++ ----------------
CPPFLAGS += -Wa,-adhlns=$(@:%.o=%.lst)
CPPFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))
#CPPFLAGS += $(CSTANDARD)
-CPPFLAGS += -include $(CONFIG_H)
+ifdef CONFIG_H
+ CPPFLAGS += -include $(CONFIG_H)
+endif
#---------------- Assembler Options ----------------
# -listing-cont-lines: Sets the maximum number of continuation lines of hex
# dump that will be displayed for a given single line of source input.
ASFLAGS = $(ADEFS) -Wa,-adhlns=$(@:%.o=%.lst),-gstabs,--listing-cont-lines=100
-ASFLAGS += -include $(CONFIG_H)
+ifdef CONFIG_H
+ ASFLAGS += -include $(CONFIG_H)
+endif
#---------------- Library Options ----------------
TARGET = news_usb_pjrc
# Directory common source filess exist
-COMMON_DIR = ..
+TOP_DIR = ..
# Directory keyboard dependent files exist
TARGET_DIR = .
-include $(COMMON_DIR)/pjrc.mk
-include $(COMMON_DIR)/common.mk
+include $(TOP_DIR)/protocol/pjrc.mk
+include $(TOP_DIR)/protocol.mk
+include $(TOP_DIR)/common.mk
+include $(TOP_DIR)/rules.mk
TARGET = terminal_usb_102_pjrc
# Directory common source filess exist
-COMMON_DIR = ..
+TOP_DIR = ..
# Directory keyboard dependent files exist
TARGET_DIR = .
-include $(COMMON_DIR)/pjrc.mk
-include $(COMMON_DIR)/common.mk
+include $(TOP_DIR)/protocol/pjrc.mk
+include $(TOP_DIR)/protocol.mk
+include $(TOP_DIR)/common.mk
+include $(TOP_DIR)/rules.mk
TARGET = terminal_usb_122_pjrc
# Directory common source filess exist
-COMMON_DIR = ..
+TOP_DIR = ..
# Directory keyboard dependent files exist
TARGET_DIR = .
-include $(COMMON_DIR)/pjrc.mk
-include $(COMMON_DIR)/common.mk
+include $(TOP_DIR)/protocol/pjrc.mk
+include $(TOP_DIR)/protocol.mk
+include $(TOP_DIR)/common.mk
+include $(TOP_DIR)/rules.mk
TARGET = x68k_usb_pjrc
# Directory common source filess exist
-COMMON_DIR = ..
+TOP_DIR = ..
# Directory keyboard dependent files exist
TARGET_DIR = .
-include $(COMMON_DIR)/pjrc.mk
-include $(COMMON_DIR)/common.mk
+include $(TOP_DIR)/protocol/pjrc.mk
+include $(TOP_DIR)/protocol.mk
+include $(TOP_DIR)/common.mk
+include $(TOP_DIR)/rules.mk