1
0
Fork 0
forked from Miroirs/x49gp

Compare commits

...

2 commits

Author SHA1 Message Date
Gwenhael Le Moine
fe8b759aa8
optimize qemu building in Makefile 2024-10-31 22:30:38 +01:00
Gwenhael Le Moine
c729b553ff
add --scale option 2024-10-31 20:04:23 +01:00
3 changed files with 11 additions and 7 deletions

View file

@ -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:

View file

@ -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;

View file

@ -26,6 +26,7 @@ struct options {
char* name;
char* font;
double scale;
};
extern struct options opt;