-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit dcfe30a
Showing
7 changed files
with
15,393 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Makefile for pcm8a (convert source code from UTF-8 to Shift_JIS) | ||
# Do not use non-ASCII characters in this file. | ||
|
||
MKDIR_P = mkdir -p | ||
U8TOSJ = u8tosj | ||
|
||
SRC_DIR = src | ||
BLD_DIR = build | ||
|
||
|
||
SRCS = $(wildcard $(SRC_DIR)/*) | ||
SJ_SRCS = $(subst $(SRC_DIR)/,$(BLD_DIR)/,$(SRCS)) | ||
|
||
|
||
.PHONY: all directories clean distclean | ||
|
||
all: directories $(SJ_SRCS) | ||
|
||
directories: $(BLD_DIR) | ||
|
||
$(BLD_DIR): | ||
$(MKDIR_P) $@ | ||
|
||
|
||
# convert src/* (UTF-8) to build/* (Shift_JIS) | ||
$(BLD_DIR)/%: $(SRC_DIR)/% | ||
$(U8TOSJ) < $^ >! $@ | ||
|
||
|
||
|
||
clean: | ||
rm -f $(SJ_SRCS) | ||
|
||
distclean: | ||
-rm -f $(SJ_SRCS) | ||
-rmdir $(BLD_DIR) | ||
|
||
|
||
# EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# PCM8A 改造版 | ||
|
||
PCM8A の改造版です。 | ||
|
||
無保証です。 | ||
十分なテストを行っていないので、不具合があるかもしれません。 | ||
|
||
|
||
## Build | ||
PC やネット上で扱いやすくするために、ソースファイルは UTF-8 で記述されています。 | ||
X68000 上でビルドする際には、UTF-8 から Shift_JIS への変換が必要です。 | ||
|
||
### u8tosj を使用する方法 | ||
|
||
あらかじめ、[u8tosj](https://github.com/kg68k/u8tosj) をビルドしてインストールしておいてください。 | ||
|
||
トップディレクトリで make を実行してください。以下の処理が行われます。 | ||
1. build ディレクトリの作成。 | ||
2. si.txt を Shift_JIS に変換して build/ へ保存。 | ||
3. src/ 内の各ファイルを Shift_JIS に変換して build/ へ保存。 | ||
|
||
次に、カレントディレクトリを build/ に変更し、make を実行してください。 | ||
実行ファイルが作成されます。 | ||
|
||
### u8tosj を使用しない方法 | ||
|
||
ファイルを適当なツールで適宜 Shift_JIS に変換してから make を実行してください。 | ||
UTF-8 のままでは正しくビルドできませんので注意してください。 | ||
|
||
|
||
## Author | ||
原著作者: philly 氏 | ||
|
||
改造版作者: TcbnErik / https://github.com/kg68k/pcm8a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Makefile for pcm8a | ||
|
||
ifeq ($(notdir $(CURDIR)),src) | ||
$(error do not execute make in src directory) | ||
endif | ||
|
||
AS = has | ||
ASFLAGS = | ||
LD = hlk | ||
LDFLAGS = | ||
|
||
BINDIR = /usr/local/bin | ||
MANDIR = /usr/local/man/cat1 | ||
|
||
SRCS = pcm8a.s | ||
OBJS = $(SRCS:.s=.o) | ||
PCM8A_X = pcm8a.x | ||
DOCS = pcm8a.doc pcm8atec.doc pcm8avup.doc README.md | ||
|
||
DIST_ZIP = pcm8a.zip | ||
ARCS = $(DIST_ZIP) | ||
|
||
all: $(PCM8A_X) | ||
|
||
|
||
$(DIST_ZIP): $(DOCS) $(PCM8A_X) | ||
rm -f $@ | ||
zip -9 $@ $^ | ||
|
||
$(SRC_ZIP): Makefile $(SRCS) | ||
rm -f $@ | ||
zip -9 $@ $^ | ||
|
||
|
||
$(PCM8A_X): $(OBJS) | ||
$(LD) $(LDFLAGS) -o $@ $(OBJS) | ||
|
||
%.o: %.s | ||
$(AS) $(ASFLAGS) $< | ||
|
||
|
||
install: | ||
cp -p $(PCM8A_X) $(BINDIR) | ||
cp -p $(DOCS) $(MANDIR) | ||
|
||
clean: | ||
rm -f $(PCM8A_X) $(OBJS) $(ARCS) | ||
|
||
|
||
# EOF |
Oops, something went wrong.