forked from Miroirs/x49gp
Compare commits
2 commits
01408a338f
...
fe8b759aa8
Author | SHA1 | Date | |
---|---|---|---|
|
fe8b759aa8 | ||
|
c729b553ff |
3 changed files with 11 additions and 7 deletions
9
Makefile
9
Makefile
|
@ -1,6 +1,3 @@
|
|||
# $Id: Makefile,v 1.29 2008/12/11 12:18:17 ecd Exp $
|
||||
#
|
||||
|
||||
TARGET = x49gpng
|
||||
TARGET_ALLCAPS = X49GPNG
|
||||
|
||||
|
@ -165,7 +162,9 @@ $(QEMU_DIR)/config-host.h:
|
|||
./configure-small --extra-cflags=-DX49GP; \
|
||||
$(MAKE) -f Makefile-small )
|
||||
|
||||
$(QEMU_OBJS): dummy
|
||||
$(QEMU_OBJS): qemu-objs
|
||||
|
||||
qemu-objs:
|
||||
+$(MAKE) -C $(QEMU_DIR) -f Makefile-small
|
||||
|
||||
clean-qemu:
|
||||
|
@ -230,5 +229,3 @@ install: all dist/$(TARGET).desktop dist/$(TARGET).man
|
|||
install -D -m 644 dist/$(TARGET).desktop "$(DESTDIR)$(INSTALL_MENU_DIR)/$(TARGET).desktop"
|
||||
install -D -m 644 dist/$(TARGET).man "$(DESTDIR)$(INSTALL_MAN_DIR)/$(TARGET).1"
|
||||
cp -R dist/firmware/ "$(DESTDIR)$(INSTALL_DATA_DIR)/firmware"
|
||||
|
||||
dummy:
|
||||
|
|
|
@ -28,6 +28,7 @@ void config_init( char* progname, int argc, char* argv[] )
|
|||
opt.firmware = NULL;
|
||||
opt.model = MODEL_50G;
|
||||
opt.name = NULL;
|
||||
opt.scale = 1.0;
|
||||
|
||||
#if defined( __linux__ )
|
||||
opt.font = "urw gothic l";
|
||||
|
@ -52,6 +53,7 @@ void config_init( char* progname, int argc, char* argv[] )
|
|||
{"49gp", no_argument, NULL, 496},
|
||||
{"49gp-newrpl", no_argument, NULL, 497},
|
||||
{"name", required_argument, NULL, 'n'},
|
||||
{"scale", required_argument, NULL, 's'},
|
||||
|
||||
{"font", required_argument, NULL, 't'},
|
||||
|
||||
|
@ -74,7 +76,8 @@ void config_init( char* progname, int argc, char* argv[] )
|
|||
" --49gp show HP 49g+ faceplate\n"
|
||||
" --49gp-newrpl show HP 49g+ faceplate with newRPL labels\n"
|
||||
" -n --name[=<name>] set alternate UI name\n"
|
||||
" -t --font[=<fontname>] set alternate UI font\n"
|
||||
" -t --font[=<fontname>] set alternate UI font\n"
|
||||
" -s --scale[=<X.x>] scale GUI by X.x\n"
|
||||
" -D --enable-debug[=<port>] enable the debugger interface\n"
|
||||
" (default port: %u)\n"
|
||||
" -d --debug use along -D to also start the debugger immediately\n"
|
||||
|
@ -126,6 +129,9 @@ void config_init( char* progname, int argc, char* argv[] )
|
|||
case 'n':
|
||||
opt.name = strdup( optarg );
|
||||
break;
|
||||
case 's':
|
||||
opt.scale = atof( optarg );
|
||||
break;
|
||||
case 't':
|
||||
opt.font = strdup( optarg );
|
||||
break;
|
||||
|
|
|
@ -26,6 +26,7 @@ struct options {
|
|||
char* name;
|
||||
|
||||
char* font;
|
||||
double scale;
|
||||
};
|
||||
|
||||
extern struct options opt;
|
||||
|
|
Loading…
Reference in a new issue