mirror of
https://github.com/open-simh/simtools.git
synced 2026-02-27 01:00:11 +00:00
Make default object file format choosable from Makefile.
This commit is contained in:
3
Makefile
3
Makefile
@@ -4,7 +4,8 @@
|
||||
#
|
||||
|
||||
WARNS ?= -Wall -Wshadow -Wextra -pedantic -Woverflow -Wstrict-overflow
|
||||
CFLAGS ?= -O -ggdb -std=gnu99 $(WARNS)
|
||||
OBJFORMAT = -DDEFAULT_OBJECTFORMAT_RT11=0
|
||||
CFLAGS ?= -O -ggdb -std=gnu99 $(WARNS) $(OBJFORMAT)
|
||||
|
||||
MACRO11_SRCS = macro11.c \
|
||||
assemble.c assemble_globals.c assemble_aux.c \
|
||||
|
||||
@@ -49,6 +49,10 @@ DAMAGE.
|
||||
|
||||
#define NPSECTS 256
|
||||
|
||||
#ifndef DEFAULT_OBJECTFORMAT_RT11
|
||||
#define DEFAULT_OBJECTFORMAT_RT11 0
|
||||
#endif
|
||||
|
||||
int psectid = 0;
|
||||
char *psects[NPSECTS];
|
||||
FILE *bin = NULL;
|
||||
@@ -686,7 +690,7 @@ int main(
|
||||
int len;
|
||||
FILE *fp;
|
||||
int arg;
|
||||
int rt11 = 0;
|
||||
int rt11 = DEFAULT_OBJECTFORMAT_RT11;
|
||||
char *infile = 0;
|
||||
char *outfile = 0;
|
||||
|
||||
|
||||
@@ -145,8 +145,10 @@ static void print_help(
|
||||
printf(" libraries (see -m) into individual .MAC files in the current\n");
|
||||
printf(" directory. No assembly of input is done.\n");
|
||||
printf(" This must be the last command line option!\n");
|
||||
printf("-rsx Generate RSX style object files (default).\n");
|
||||
printf("-rt11 Generate RT11 style object files.\n");
|
||||
printf("-rsx Generate RSX style object files%s.\n",
|
||||
(rt11 ? "": " (default)"));
|
||||
printf("-rt11 Generate RT11 style object files.%s\n",
|
||||
(rt11 ? " (default)": ""));
|
||||
printf("-ysl Syntax extension: change length of symbols from \n");
|
||||
printf(" default = %d to larger values, max %d.\n", SYMMAX_DEFAULT, SYMMAX_MAX);
|
||||
printf("-yus Syntax extension: allow underscore \"_\" in symbols.\n");
|
||||
|
||||
Reference in New Issue
Block a user