Correct program names in usage.

This commit is contained in:
Andreas Zdziarstek committed 2021-01-17 19:54:54 +01:00
1 parent 4357707198
commit aa14e57a67
3 files changed
+8 -3

No files matched your search

Binary file not shown.
+3 -2
View File
@@ -9,12 +9,13 @@ AS = $(PREFIX)/m68k-amigaos-as
VPATH = .:../common_src
INCLUDE = -I../common_src
DEFINE = -DPROGRAM_NAME='"$(PROGRAM_NAME)"'
#CFLAGS = $(INCLUDE) -Os -s -m68000 -fomit-frame-pointer -mcrt=nix13 -msmall-code -fbaserel -mregparm -Wall -Werror -Wno-pointer-sign -std=gnu99
CFLAGS = $(INCLUDE) -Os -s -m68000 -fomit-frame-pointer -mcrt=nix13 -msmall-code -fbaserel -Wall -Werror -Wno-pointer-sign -std=gnu99
CFLAGS = $(INCLUDE) -Os -s -m68000 -fomit-frame-pointer -mcrt=nix13 -msmall-code -fbaserel -Wall -Werror -Wno-pointer-sign -std=gnu99 $(DEFINE)
CXXFLAGS = $(INCLUDE) -Os -s -m68000 -fomit-frame-pointer -mcrt=nix13 -msmall-code -fbaserel -Wall -Werror
CXXFLAGS = $(INCLUDE) -Os -s -m68000 -fomit-frame-pointer -mcrt=nix13 -msmall-code -fbaserel -Wall -Werror $(DEFINE)
LIBS = -lamiga
+5 -1
View File
@@ -35,6 +35,10 @@
#include "midi_dev.h"
#include "getopt.h"
#ifndef PROGRAM_NAME
#define PROGRAM_NAME "MT32-PI.EXE"
#endif
typedef enum {
MODE_UNCHANGED,
MODE_MUNT,
@@ -430,7 +434,7 @@ static unsigned char roland_checksum(const unsigned char *buf, unsigned short le
}
static void print_usage(void) {
printf("USAGE: MT32-PI.EXE [OPTIONS]\n");
printf("USAGE: " PROGRAM_NAME " [OPTIONS]\n");
printf("OPTIONS:\n");
printf( "-h/--help: Print this info.\n"
"-v/--verbose: Be verbose about what is going on.\n"