Skip to content

Commit

Permalink
Fix Makefile for release
Browse files Browse the repository at this point in the history
  • Loading branch information
yunkya2 committed Dec 10, 2023
1 parent e059051 commit 5cfb74d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ AR = $(CROSS)ar
RANLIB = $(CROSS)ranlib
OBJCOPY = $(CROSS)objcopy

#GIT_REPO_VERSION=$(shell git describe --tags --always)
GIT_REPO_VERSION=$(shell git describe --tags --always)

CFLAGS = -g -std=gnu99 -O
CFLAGS += -finput-charset=utf-8 -fexec-charset=cp932
Expand All @@ -40,6 +40,14 @@ gdbserver.o : gdbserver.c arch.h utils.h packets.h ptrace.h
$(CC) $(CFLAGS) -c -o $@ $<

clean:
-rm -f *.o *.x*
-rm -rf *.o *.x* build

.PHONY: all clean
RELFILE := gdbserver-x68k-$(GIT_REPO_VERSION).zip

release: all
rm -rf build && mkdir build
cat README.68k | sed "s/\$$(VERSION)/$(GIT_REPO_VERSION)/" | iconv -f utf-8 -t cp932 > build/README.txt
cp gdbserver.x build
(cd build; zip -r ../$(RELFILE) *)

.PHONY: all clean release
11 changes: 11 additions & 0 deletions README.68k
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
gdbserver-x68k version $(VERSION)
===============================

elf2x68k (https://github.com/yunkya2/elf2x68k) で開発した X680x0 のプログラムを、
シリアルポートで接続したクロス開発環境から GNU デバッガ (gdb) でデバッグする
リモートデバッガです。

使用方法は https://github.com/yunkya2/gdbserver-x68k を参照してください。

---------------------------------------------
Copyright 2023 (c) Yuichi Nakamura (@yunkya2)

0 comments on commit 5cfb74d

Please sign in to comment.