Some checks failed
CI / markdown-lint (push) Failing after 14s
- Updated .gitignore with comprehensive exclusions for build artifacts, IDE files, and OS-specific files - Created BlackBerry-inspired website with Heroicons and Gitea integration - Added complete project structure with all 7 phases implemented - Included kernel drivers, UI components, telephony stack, and packaging tools - Added emulation scripts for testing and development - Comprehensive documentation for all development phases - Security analysis and hardware testing guides - SDK and application framework for third-party development
59 lines
1.4 KiB
Makefile
59 lines
1.4 KiB
Makefile
# BBeOS Telephony Build System
|
|
# Builds telephony components for BlackBerry Classic Q20
|
|
|
|
# Configuration
|
|
CC = arm-linux-gnueabihf-gcc
|
|
CFLAGS = -Wall -Wextra -O2 -g
|
|
LDFLAGS =
|
|
|
|
# Directories
|
|
MODEM_DIR = modem
|
|
VOICE_DIR = voice
|
|
SMS_DIR = sms
|
|
NETWORK_DIR = network
|
|
APPS_DIR = apps
|
|
|
|
# Targets
|
|
all: modem voice sms
|
|
|
|
modem: $(MODEM_DIR)/q20-modem.ko
|
|
|
|
voice: $(VOICE_DIR)/q20-voice.ko
|
|
|
|
sms: $(SMS_DIR)/q20-sms.ko
|
|
|
|
# Modem driver
|
|
$(MODEM_DIR)/q20-modem.ko: $(MODEM_DIR)/q20-modem.c
|
|
$(MAKE) -C $(KERNEL_SRC) M=$(PWD)/$(MODEM_DIR) modules
|
|
|
|
# Voice driver
|
|
$(VOICE_DIR)/q20-voice.ko: $(VOICE_DIR)/q20-voice.c
|
|
$(MAKE) -C $(KERNEL_SRC) M=$(PWD)/$(VOICE_DIR) modules
|
|
|
|
# SMS driver
|
|
$(SMS_DIR)/q20-sms.ko: $(SMS_DIR)/q20-sms.c
|
|
$(MAKE) -C $(KERNEL_SRC) M=$(PWD)/$(SMS_DIR) modules
|
|
|
|
# Installation
|
|
install: all
|
|
@echo "Installing telephony components..."
|
|
mkdir -p $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/extra
|
|
cp $(MODEM_DIR)/q20-modem.ko $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/extra/
|
|
cp $(VOICE_DIR)/q20-voice.ko $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/extra/
|
|
cp $(SMS_DIR)/q20-sms.ko $(DESTDIR)/lib/modules/$(KERNEL_VERSION)/extra/
|
|
|
|
# Clean
|
|
clean:
|
|
$(MAKE) -C $(MODEM_DIR) clean
|
|
$(MAKE) -C $(VOICE_DIR) clean
|
|
$(MAKE) -C $(SMS_DIR) clean
|
|
|
|
# Development targets
|
|
dev: CFLAGS += -DDEBUG -g3
|
|
dev: all
|
|
|
|
# Release targets
|
|
release: CFLAGS += -DNDEBUG -O3
|
|
release: all
|
|
|
|
.PHONY: all modem voice sms install clean dev release |