diff --git a/Mkfiles/Makefile.dj b/Mkfiles/Makefile.dj index 9e270f7b..ac01cbc5 100644 --- a/Mkfiles/Makefile.dj +++ b/Mkfiles/Makefile.dj @@ -7,83 +7,69 @@ # Also, WARNING, no header dependencies are included! # # How to compile: -# copy Mkfiles/config.h.dj config.h # make -fMkfiles/Makefile.dj -CFLAGS=-DHAVE_CONFIG_H -I. -Isrc -Isrc/arch/x86 +CFLAGS=-DHAVE_CONFIG_H -IMkfiles/dj -I. -Isrc -Isrc/arch/x86 CC=gcc -all: src/yasm +all: yasm -SRC_OBJS= \ - src/arch.o \ +YASM_BASE_OBJS= \ src/bytecode.o \ - src/errwarn.o \ src/expr.o \ src/symrec.o \ src/globals.o \ src/file.o \ src/section.o \ - src/options.o \ + src/arch.o \ + src/objfmt.o \ + src/preproc.o \ src/parser.o \ src/intnum.o \ src/floatnum.o \ - src/mergesort.o \ - src/ternary.o \ + src/hamt.o \ src/bitvect.o \ src/valparam.o \ src/xmalloc.o \ src/xstrdup.o \ src/strcasecmp.o -SRC_ARCH_X86_OBJS= \ - src/arch/x86/arch.o \ - src/arch/x86/bytecode.o \ - src/arch/x86/expr.o - -SRC_ARCH_OBJS= \ - $(SRC_ARCH_X86_OBJS) - -SRC_PREPROCS_RAW_OBJS= \ - src/preprocs/raw/preproc.o - -SRC_PREPROCS_OBJS= \ - $(SRC_PREPROCS_RAW_OBJS) +YASM_ARCH_OBJS= \ + src/arch/x86/x86arch.o \ + src/arch/x86/x86bc.o \ + src/arch/x86/x86expr.o -SRC_PARSERS_NASM_OBJS= \ - src/parsers/nasm/parser.o \ - src/parsers/nasm/bison.o \ - src/parsers/nasm/token.o +YASM_PARSER_OBJS= \ + src/parsers/nasm/nasm-parser.o \ + nasm-bison.o \ + nasm-token.o -SRC_PARSERS_OBJS= \ - $(SRC_PARSERS_NASM_OBJS) +YASM_PREPROC_OBJS= \ + src/preprocs/raw/raw-preproc.o \ + src/preprocs/yapp/yapp-preproc.o \ + yapp-token.o -SRC_OPTIMIZERS_DBG_OBJS= \ - src/optimizers/dbg/optimizer.o +YASM_OPTIMIZER_OBJS= \ + src/optimizers/basic/basic-optimizer.o -SRC_OPTIMIZERS_OBJS= \ - $(SRC_OPTIMIZERS_DBG_OBJS) - -SRC_OBJFMTS_DBG_OBJS= \ - src/objfmts/dbg/objfmt.o - -SRC_OBJFMTS_OBJS= \ - $(SRC_OBJFMTS_DBG_OBJS) +YASM_OBJFMT_OBJS= \ + src/objfmts/dbg/dbg-objfmt.o \ + src/objfmts/bin/bin-objfmt.o YASM_OBJS= \ src/main.o \ - $(SRC_OBJS) \ - $(SRC_PREPROCS_OBJS) \ - $(SRC_PARSERS_OBJS) \ - $(SRC_OPTIMIZERS_OBJS) \ - $(SRC_OBJFMTS_OBJS) \ - $(SRC_ARCH_OBJS) - -src/yasm: $(YASM_OBJS) - $(CC) -o src/yasm $(YASM_OBJS) - -src/parsers/nasm/token.o: src/parsers/nasm/token.c - $(CC) -c $(CFLAGS) -Isrc/parsers/nasm -o $@ $< + src/errwarn.o \ + src/options.o \ + $(YASM_BASE_OBJS) \ + $(YASM_ARCH_OBJS) \ + $(YASM_PARSER_OBJS) \ + $(YASM_PREPROC_OBJS) \ + $(YASM_OPTIMIZER_OBJS) \ + $(YASM_OBJFMT_OBJS) \ + mergesort.o + +yasm: $(YASM_OBJS) + $(CC) -o yasm $(YASM_OBJS) .c.o: $(CC) -c $(CFLAGS) -o $@ $< diff --git a/Mkfiles/Makefile.flat b/Mkfiles/Makefile.flat index ed0d051d..8765c9e1 100644 --- a/Mkfiles/Makefile.flat +++ b/Mkfiles/Makefile.flat @@ -16,7 +16,7 @@ # This file should be customized to particular platforms by changing CC and # CFLAGS appropriately, along with writing a config.h for the platform. -CFLAGS=-DHAVE_CONFIG_H -I. -Isrc -Isrc/arch/x86 +CFLAGS=-DHAVE_CONFIG_H -IMkfiles -I. -Isrc -Isrc/arch/x86 CC=gcc BISON=bison FLEX=flex @@ -24,85 +24,75 @@ PERL=perl all: src/yasm -SRC_OBJS= \ - src/arch.o \ +YASM_BASE_OBJS= \ src/bytecode.o \ - src/errwarn.o \ src/expr.o \ src/symrec.o \ src/globals.o \ src/file.o \ src/section.o \ - src/options.o \ + src/arch.o \ + src/objfmt.o \ + src/preproc.o \ src/parser.o \ src/intnum.o \ src/floatnum.o \ - src/mergesort.o \ - src/ternary.o \ + src/hamt.o \ src/bitvect.o \ src/valparam.o \ src/xmalloc.o \ src/xstrdup.o \ src/strcasecmp.o -SRC_ARCH_X86_OBJS= \ - src/arch/x86/arch.o \ - src/arch/x86/bytecode.o \ - src/arch/x86/expr.o - -SRC_ARCH_OBJS= \ - $(SRC_ARCH_X86_OBJS) - -SRC_PREPROCS_RAW_OBJS= \ - src/preprocs/raw/preproc.o - -SRC_PREPROCS_OBJS= \ - $(SRC_PREPROCS_RAW_OBJS) +YASM_ARCH_OBJS= \ + src/arch/x86/x86arch.o \ + src/arch/x86/x86bc.o \ + src/arch/x86/x86expr.o -SRC_PARSERS_NASM_OBJS= \ - src/parsers/nasm/parser.o \ - src/parsers/nasm/bison.o \ - src/parsers/nasm/token.o +YASM_PARSER_OBJS= \ + src/parsers/nasm/nasm-parser.o \ + nasm-bison.o \ + nasm-token.o -SRC_PARSERS_OBJS= \ - $(SRC_PARSERS_NASM_OBJS) +YASM_PREPROC_OBJS= \ + src/preprocs/raw/raw-preproc.o \ + src/preprocs/yapp/yapp-preproc.o \ + yapp-token.o -SRC_OPTIMIZERS_DBG_OBJS= \ - src/optimizers/dbg/optimizer.o +YASM_OPTIMIZER_OBJS= \ + src/optimizers/basic/basic-optimizer.o -SRC_OPTIMIZERS_OBJS= \ - $(SRC_OPTIMIZERS_DBG_OBJS) - -SRC_OBJFMTS_DBG_OBJS= \ - src/objfmts/dbg/objfmt.o - -SRC_OBJFMTS_OBJS= \ - $(SRC_OBJFMTS_DBG_OBJS) +YASM_OBJFMT_OBJS= \ + src/objfmts/dbg/dbg-objfmt.o \ + src/objfmts/bin/bin-objfmt.o YASM_OBJS= \ src/main.o \ - $(SRC_OBJS) \ - $(SRC_PREPROCS_OBJS) \ - $(SRC_PARSERS_OBJS) \ - $(SRC_OPTIMIZERS_OBJS) \ - $(SRC_OBJFMTS_OBJS) \ - $(SRC_ARCH_OBJS) + src/errwarn.o \ + src/options.o \ + $(YASM_BASE_OBJS) \ + $(YASM_ARCH_OBJS) \ + $(YASM_PARSER_OBJS) \ + $(YASM_PREPROC_OBJS) \ + $(YASM_OPTIMIZER_OBJS) \ + $(YASM_OBJFMT_OBJS) \ + mergesort.o src/yasm: $(YASM_OBJS) $(CC) -o src/yasm $(YASM_OBJS) -src/parsers/nasm/token.o: src/parsers/nasm/token.c - $(CC) -c $(CFLAGS) -Isrc/parsers/nasm -o $@ $< - # This is broken: it produces an invalid bison.h -src/parsers/nasm/bison.c: src/parsers/nasm/bison.y +nasm-bison.c: nasm-bison.y $(BISON) -d --name-prefix=nasm_parser_ -o $@ $< -src/parsers/nasm/token.c: src/parsers/nasm/token.l - $(FLEX) -Pname_parser_ -o$@ $< +nasm-token.c: nasm-token.l + $(FLEX) -Pnasm_parser_ -o$@ $< + +nasm-bison.y nasm-token.l: src/arch/x86/instrs.dat src/parsers/nasm/bison.y.in src/parsers/nasm/token.l.in src/parsers/nasm/gen_instr.pl + $(PERL) src/parsers/nasm/gen_instr.pl -i src/arch/x86/instrs.dat -t nasm-token.l -g nasm-bison.y -src/parsers/nasm/bison.y src/parsers/nasm/token.l: src/instrs.dat src/parsers/nasm/bison.y.in src/parsers/nasm/token.l.in src/parsers/nasm/gen_instr.pl - $(PERL) src/parsers/nasm/gen_instr.pl -i src/instrs.dat -t src/parsers/nasm/token.l -g src/parsers/nasm/bison.y +yapp-token.c: src/preprocs/yapp/yapp-token.l + $(FLEX) -Pyapp_parser_ -o$@ $< .c.o: $(CC) -c $(CFLAGS) -o $@ $< diff --git a/Mkfiles/Makefile.vc b/Mkfiles/Makefile.vc index 4cd48a78..c8bcf58f 100644 --- a/Mkfiles/Makefile.vc +++ b/Mkfiles/Makefile.vc @@ -7,83 +7,69 @@ # Also, WARNING, no header dependencies are included! # # How to compile: -# copy Mkfiles/config.h.vc config.h # nmake -fMkfiles/Makefile.vc -CFLAGS=/DHAVE_CONFIG_H /I. /Isrc /Isrc/arch/x86 +CFLAGS=/DHAVE_CONFIG_H /IMkfiles/vc /I. /Isrc /Isrc/arch/x86 CC=cl -all: src\yasm.exe - -SRC_OBJS= \ - src\arch.obj \ - src\bytecode.obj \ - src\errwarn.obj \ - src\expr.obj \ - src\symrec.obj \ - src\globals.obj \ - src\file.obj \ - src\section.obj \ - src\options.obj \ - src\parser.obj \ - src\intnum.obj \ - src\floatnum.obj \ - src\mergesort.obj \ - src\ternary.obj \ - src\bitvect.obj \ - src\valparam.obj \ - src\xmalloc.obj \ - src\xstrdup.obj \ - src\strcasecmp.obj - -SRC_ARCH_X86_OBJS= \ - src\arch\x86\arch.obj \ - src\arch\x86\bytecode.obj \ - src\arch\x86\expr.obj - -SRC_ARCH_OBJS= \ - $(SRC_ARCH_X86_OBJS) - -SRC_PREPROCS_RAW_OBJS= \ - src\preprocs\raw\preproc.obj - -SRC_PREPROCS_OBJS= \ - $(SRC_PREPROCS_RAW_OBJS) - -SRC_PARSERS_NASM_OBJS= \ - src\parsers\nasm\parser.obj \ - src\parsers\nasm\bison.obj \ - src\parsers\nasm\token.obj - -SRC_PARSERS_OBJS= \ - $(SRC_PARSERS_NASM_OBJS) - -SRC_OPTIMIZERS_DBG_OBJS= \ - src\optimizers\dbg\optimizer.obj - -SRC_OPTIMIZERS_OBJS= \ - $(SRC_OPTIMIZERS_DBG_OBJS) - -SRC_OBJFMTS_DBG_OBJS= \ - src\objfmts\dbg\objfmt.obj - -SRC_OBJFMTS_OBJS= \ - $(SRC_OBJFMTS_DBG_OBJS) +all: yasm.exe + +YASM_BASE_OBJS= \ + src/bytecode.obj \ + src/expr.obj \ + src/symrec.obj \ + src/globals.obj \ + src/file.obj \ + src/section.obj \ + src/arch.obj \ + src/objfmt.obj \ + src/preproc.obj \ + src/parser.obj \ + src/intnum.obj \ + src/floatnum.obj \ + src/hamt.obj \ + src/bitvect.obj \ + src/valparam.obj \ + src/xmalloc.obj \ + src/xstrdup.obj \ + src/strcasecmp.obj + +YASM_ARCH_OBJS= \ + src/arch/x86/x86arch.obj \ + src/arch/x86/x86bc.obj \ + src/arch/x86/x86expr.obj + +YASM_PARSER_OBJS= \ + src/parsers/nasm/nasm-parser.obj \ + nasm-bison.obj \ + nasm-token.obj + +YASM_PREPROC_OBJS= \ + src/preprocs/raw/raw-preproc.obj \ + src/preprocs/yapp/yapp-preproc.obj \ + yapp-token.obj + +YASM_OPTIMIZER_OBJS= \ + src/optimizers/basic/basic-optimizer.obj + +YASM_OBJFMT_OBJS= \ + src/objfmts/dbg/dbg-objfmt.obj \ + src/objfmts/bin/bin-objfmt.obj YASM_OBJS= \ - src\main.obj \ - $(SRC_OBJS) \ - $(SRC_PREPROCS_OBJS) \ - $(SRC_PARSERS_OBJS) \ - $(SRC_OPTIMIZERS_OBJS) \ - $(SRC_OBJFMTS_OBJS) \ - $(SRC_ARCH_OBJS) - -src\yasm.exe: $(YASM_OBJS) - $(CC) /Fesrc\yasm.exe $(YASM_OBJS) - -src\parsers\nasm\token.o: src\parsers\nasm\token.c - $(CC) /c $(CFLAGS) /Isrc/parsers/nasm /Fo$@ $< + src/main.obj \ + src/errwarn.obj \ + src/options.obj \ + $(YASM_BASE_OBJS) \ + $(YASM_ARCH_OBJS) \ + $(YASM_PARSER_OBJS) \ + $(YASM_PREPROC_OBJS) \ + $(YASM_OPTIMIZER_OBJS) \ + $(YASM_OBJFMT_OBJS) \ + mergesort.obj + +yasm.exe: $(YASM_OBJS) + $(CC) /Feyasm.exe $(YASM_OBJS) .c.obj: $(CC) /c $(CFLAGS) /Fo$@ $< diff --git a/Mkfiles/config.h.dj b/Mkfiles/config.h.dj deleted file mode 100644 index 97475766..00000000 --- a/Mkfiles/config.h.dj +++ /dev/null @@ -1,219 +0,0 @@ -/* $IdPath$ */ - -#ifndef YASM_CONFIG_H -#define YASM_CONFIG_H - -/* Define if using alloca.c. */ -/* #undef C_ALLOCA */ - -/* Define to empty if the keyword does not work. */ -/* #undef const */ - -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ -/* #undef CRAY_STACKSEG_END */ - -/* Define if you have alloca, as a function or macro. */ -#define HAVE_ALLOCA - -/* Define if you have and it should be used (not on Ultrix). */ -/* #undef HAVE_ALLOCA_H */ - -/* Define if you don't have vprintf but do have _doprnt. */ -/* #undef HAVE_DOPRNT */ - -/* Define if you have a working `mmap' system call. */ -/* #undef HAVE_MMAP */ - -/* Define if you have that is POSIX.1 compatible. */ -#define HAVE_SYS_WAIT_H - -/* Define if you have the vprintf function. */ -#define HAVE_VPRINTF - -/* Define as __inline if that's what the C compiler calls it. */ -/* #undef inline */ - -/* Define to `long' if doesn't define. */ -/* #undef off_t */ - -/* Define to `int' if doesn't define. */ -/* #undef pid_t */ - -/* Define to `unsigned' if doesn't define. */ -/* #undef size_t */ - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown - */ -/* #undef STACK_DIRECTION */ - -/* Define if you have the ANSI C header files. */ -#define STDC_HEADERS - -/* Define if lex declares yytext as a char * by default, not a char[]. */ -#define YYTEXT_POINTER - -/* Workaround for bad implementations. */ -#define HAVE_BOGUS_SYS_QUEUE_H - -/* gettext tests */ -/* #undef ENABLE_NLS */ -/* #undef HAVE_CATGETS */ -/* #undef HAVE_GETTEXT */ -/* #undef HAVE_LC_MESSAGES */ -/* #undef HAVE_STPCPY */ - -/* combined test for fork/way/msg* */ -/* #undef USE_FORKWAITMSG */ - -/* Check for GNU C Library */ -/* #undef HAVE_GNU_C_LIBRARY */ - -/* Define if you have the __argz_count function. */ -/* #undef HAVE___ARGZ_COUNT */ - -/* Define if you have the __argz_next function. */ -/* #undef HAVE___ARGZ_NEXT */ - -/* Define if you have the __argz_stringify function. */ -/* #undef HAVE___ARGZ_STRINGIFY */ - -/* Define if you have the abort function. */ -#define HAVE_ABORT - -/* Define if you have the dcgettext function. */ -/* #undef HAVE_DCGETTEXT */ - -/* Define if you have the fork function. */ -/* #undef HAVE_FORK */ - -/* Define if you have the getcwd function. */ -#define HAVE_GETCWD - -/* Define if you have the getpagesize function. */ -#define HAVE_GETPAGESIZE - -/* Define if you have the memcpy function. */ -#define HAVE_MEMCPY - -/* Define if you have the mergesort function. */ -/* #undef HAVE_MERGESORT */ - -/* Define if you have the msgctl function. */ -/* #undef HAVE_MSGCTL */ - -/* Define if you have the msgget function. */ -/* #undef HAVE_MSGGET */ - -/* Define if you have the msgrcv function. */ -/* #undef HAVE_MSGRCV */ - -/* Define if you have the msgsnd function. */ -/* #undef HAVE_MSGSND */ - -/* Define if you have the munmap function. */ -/* #undef HAVE_MUNMAP */ - -/* Define if you have the putenv function. */ -#define HAVE_PUTENV - -/* Define if you have the setenv function. */ -#define HAVE_SETENV - -/* Define if you have the setlocale function. */ -#define HAVE_SETLOCALE - -/* Define if you have the snprintf function. */ -/* #undef HAVE_SNPRINTF */ - -/* Define if you have the stpcpy function. */ -#define HAVE_STPCPY - -/* Define if you have the strcasecmp function. */ -#define HAVE_STRCASECMP - -/* Define if you have the strchr function. */ -#define HAVE_STRCHR - -/* Define if you have the strcmpi function. */ -/* #undef HAVE_STRCMPI */ - -/* Define if you have the strdup function. */ -#define HAVE_STRDUP - -/* Define if you have the strerror function. */ -#define HAVE_STRERROR - -/* Define if you have the stricmp function. */ -/* #undef HAVE_STRICMP */ - -/* Define if you have the strsep function. */ -#define HAVE_STRSEP - -/* Define if you have the toascii function. */ -#define HAVE_TOASCII - -/* Define if you have the wait function. */ -#define HAVE_WAIT - -/* Define if you have the header file. */ -/* #undef HAVE_ARGZ_H */ - -/* Define if you have the header file. */ -/* #undef HAVE_DMALLOC_H */ - -/* Define if you have the header file. */ -#define HAVE_LIMITS_H - -/* Define if you have the header file. */ -#define HAVE_LOCALE_H - -/* Define if you have the header file. */ -#define HAVE_MALLOC_H - -/* Define if you have the header file. */ -/* #undef HAVE_NL_TYPES_H */ - -/* Define if you have the header file. */ -#define HAVE_STRING_H - -/* Define if you have the header file. */ -#define HAVE_SYS_CDEFS_H - -/* Define if you have the header file. */ -/* #undef HAVE_SYS_IPC_H */ - -/* Define if you have the header file. */ -/* #undef HAVE_SYS_MSG_H */ - -/* Define if you have the header file. */ -#define HAVE_SYS_PARAM_H - -/* Define if you have the header file. */ -/* #undef HAVE_SYS_QUEUE_H */ - -/* Define if you have the header file. */ -#define HAVE_SYS_TYPES_H - -/* Define if you have the header file. */ -#define HAVE_UNISTD_H - -/* Define if you have the dmalloc library (-ldmalloc). */ -/* #undef HAVE_LIBDMALLOC */ - -/* Define if you have the i library (-li). */ -/* #undef HAVE_LIBI */ - -/* Name of package */ -#define PACKAGE "yasm" - -/* Version number of package */ -#define VERSION "0.0.1" - - -#endif /* YASM_CONFIG_H */ diff --git a/Mkfiles/config.h.vc b/Mkfiles/config.h.vc deleted file mode 100644 index 9ad37616..00000000 --- a/Mkfiles/config.h.vc +++ /dev/null @@ -1,224 +0,0 @@ -/* $IdPath$ */ - -#ifndef YASM_CONFIG_H -#define YASM_CONFIG_H - -/* Define if using alloca.c. */ -/* #undef C_ALLOCA */ - -/* Define to empty if the keyword does not work. */ -/* #undef const */ - -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ -/* #undef CRAY_STACKSEG_END */ - -/* Define if you have alloca, as a function or macro. */ -/* #undef HAVE_ALLOCA */ - -/* Define if you have and it should be used (not on Ultrix). */ -/* #undef HAVE_ALLOCA_H */ - -/* Define if you don't have vprintf but do have _doprnt. */ -/* #undef HAVE_DOPRNT */ - -/* Define if you have a working `mmap' system call. */ -/* #undef HAVE_MMAP */ - -/* Define if you have that is POSIX.1 compatible. */ -/* #undef HAVE_SYS_WAIT_H */ - -/* Define if you have the vprintf function. */ -#define HAVE_VPRINTF - -/* Define as __inline if that's what the C compiler calls it. */ -/* #undef inline */ - -/* Define to `long' if doesn't define. */ -/* #undef off_t */ - -/* Define to `int' if doesn't define. */ -#define pid_t int - -/* Define to `unsigned' if doesn't define. */ -/* #undef size_t */ - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown - */ -/* #undef STACK_DIRECTION */ - -/* Define if you have the ANSI C header files. */ -#define STDC_HEADERS - -/* Define if lex declares yytext as a char * by default, not a char[]. */ -#define YYTEXT_POINTER - -/* Workaround for bad implementations. */ -#define HAVE_BOGUS_SYS_QUEUE_H - -/* gettext tests */ -/* #undef ENABLE_NLS */ -/* #undef HAVE_CATGETS */ -/* #undef HAVE_GETTEXT */ -/* #undef HAVE_LC_MESSAGES */ -/* #undef HAVE_STPCPY */ - -/* combined test for fork/way/msg* */ -/* #undef USE_FORKWAITMSG */ - -/* Check for GNU C Library */ -/* #undef HAVE_GNU_C_LIBRARY */ - -/* Define if you have the __argz_count function. */ -/* #undef HAVE___ARGZ_COUNT */ - -/* Define if you have the __argz_next function. */ -/* #undef HAVE___ARGZ_NEXT */ - -/* Define if you have the __argz_stringify function. */ -/* #undef HAVE___ARGZ_STRINGIFY */ - -/* Define if you have the abort function. */ -#define HAVE_ABORT - -/* Define if you have the dcgettext function. */ -/* #undef HAVE_DCGETTEXT */ - -/* Define if you have the fork function. */ -/* #undef HAVE_FORK */ - -/* Define if you have the getcwd function. */ -/* #undef HAVE_GETCWD */ - -/* Define if you have the getpagesize function. */ -/* #undef HAVE_GETPAGESIZE */ - -/* Define if you have the memcpy function. */ -#define HAVE_MEMCPY - -/* Define if you have the mergesort function. */ -/* #undef HAVE_MERGESORT */ - -/* Define if you have the msgctl function. */ -/* #undef HAVE_MSGCTL */ - -/* Define if you have the msgget function. */ -/* #undef HAVE_MSGGET */ - -/* Define if you have the msgrcv function. */ -/* #undef HAVE_MSGRCV */ - -/* Define if you have the msgsnd function. */ -/* #undef HAVE_MSGSND */ - -/* Define if you have the munmap function. */ -/* #undef HAVE_MUNMAP */ - -/* Define if you have the putenv function. */ -/* #undef HAVE_PUTENV */ - -/* Define if you have the setenv function. */ -/* #undef HAVE_SETENV */ - -/* Define if you have the setlocale function. */ -/* #undef HAVE_SETLOCALE */ - -/* Define if you have the snprintf function. */ -#define HAVE_SNPRINTF -#define snprintf _snprintf - -/* Define if you have the stpcpy function. */ -/* #undef HAVE_STPCPY */ - -/* Define if you have the strcasecmp function. */ -/* #undef HAVE_STRCASECMP */ - -/* Define if you have the strchr function. */ -#define HAVE_STRCHR - -/* Define if you have the strcmpi function. */ -#define HAVE_STRCMPI -#define strcmpi _strcmpi - -/* Define if you have the strdup function. */ -#define HAVE_STRDUP -#define strdup _strdup - -/* Define if you have the strerror function. */ -#define HAVE_STRERROR - -/* Define if you have the stricmp function. */ -#define HAVE_STRICMP -#define stricmp _stricmp - -/* Define if you have the strsep function. */ -/* #undef HAVE_STRSEP */ - -/* Define if you have the toascii function. */ -#define HAVE_TOASCII -#define toascii __toascii - -/* Define if you have the wait function. */ -/* #undef HAVE_WAIT */ - -/* Define if you have the header file. */ -/* #undef HAVE_ARGZ_H */ - -/* Define if you have the header file. */ -/* #undef HAVE_DMALLOC_H */ - -/* Define if you have the header file. */ -#define HAVE_LIMITS_H - -/* Define if you have the header file. */ -#define HAVE_LOCALE_H - -/* Define if you have the header file. */ -#define HAVE_MALLOC_H - -/* Define if you have the header file. */ -/* #undef HAVE_NL_TYPES_H */ - -/* Define if you have the header file. */ -#define HAVE_STRING_H - -/* Define if you have the header file. */ -/* #undef HAVE_SYS_CDEFS_H */ - -/* Define if you have the header file. */ -/* #undef HAVE_SYS_IPC_H */ - -/* Define if you have the header file. */ -/* #undef HAVE_SYS_MSG_H */ - -/* Define if you have the header file. */ -/* #undef HAVE_SYS_PARAM_H */ - -/* Define if you have the header file. */ -/* #undef HAVE_SYS_QUEUE_H */ - -/* Define if you have the header file. */ -#define HAVE_SYS_TYPES_H - -/* Define if you have the header file. */ -/* #undef HAVE_UNISTD_H */ - -/* Define if you have the dmalloc library (-ldmalloc). */ -/* #undef HAVE_LIBDMALLOC */ - -/* Define if you have the i library (-li). */ -/* #undef HAVE_LIBI */ - -/* Name of package */ -#define PACKAGE "yasm" - -/* Version number of package */ -#define VERSION "0.0.1" - - -#endif /* YASM_CONFIG_H */ diff --git a/Mkfiles/dj/config.h b/Mkfiles/dj/config.h new file mode 100644 index 00000000..8ac0485f --- /dev/null +++ b/Mkfiles/dj/config.h @@ -0,0 +1,336 @@ +/* $IdPath$ */ + +/* */ +/* #undef ENABLE_NLS */ + +/* Define if you have the `abort' function. */ +#define HAVE_ABORT 1 + +/* Define if you have and it should be used (not on Ultrix). */ +/* #undef HAVE_ALLOCA_H */ + +/* Define to 1 if you have the `argz_append' function. */ +/* #undef HAVE_ARGZ_APPEND */ + +/* Define to 1 if you have the `argz_create_sep' function. */ +/* #undef HAVE_ARGZ_CREATE_SEP */ + +/* Define if you have the header file. */ +/* #undef HAVE_ARGZ_H */ + +/* Define to 1 if you have the `argz_insert' function. */ +/* #undef HAVE_ARGZ_INSERT */ + +/* Define to 1 if you have the `argz_next' function. */ +/* #undef HAVE_ARGZ_NEXT */ + +/* Define to 1 if you have the `argz_stringify' function. */ +/* #undef HAVE_ARGZ_STRINGIFY */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_ASSERT_H */ + +/* Define to 1 if you have the `bcopy' function. */ +/* #undef HAVE_BCOPY */ + +/* */ +/* #undef HAVE_CATGETS */ + +/* Define to 1 if you have the header file. */ +#define HAVE_CTYPE_H 1 + +/* Define if the GNU dcgettext() function is already present or preinstalled. + */ +/* #undef HAVE_DCGETTEXT */ + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_DIRENT_H */ + +/* Define if you have the GNU dld library. */ +/* #undef HAVE_DLD */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_DLD_H */ + +/* Define to 1 if you have the `dlerror' function. */ +/* #undef HAVE_DLERROR */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_DLFCN_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_DL_H */ + +/* Define if you don't have `vprintf' but do have `_doprnt'. */ +/* #undef HAVE_DOPRNT */ + +/* Define to 1 if you have the header file. */ +#define HAVE_ERRNO_H 1 + +/* Define to 1 if the system has the type `error_t'. */ +/* #undef HAVE_ERROR_T */ + +/* Define if you have the `fork' function. */ +/* #undef HAVE_FORK */ + +/* */ +/* #undef HAVE_GETTEXT */ + +/* Define if you have the GNU C Library */ +/* #undef HAVE_GNU_C_LIBRARY */ + +/* Define if you have the iconv() function. */ +/* #undef HAVE_ICONV */ + +/* Define to 1 if you have the `index' function. */ +/* #undef HAVE_INDEX */ + +/* Define if you have the header file. */ +/* #undef HAVE_INTTYPES_H */ + +/* */ +/* #undef HAVE_LC_MESSAGES */ + +/* Define if you have the libdl library or equivalent. */ +/* #undef HAVE_LIBDL */ + +/* Define if you have the header file. */ +#define HAVE_LIMITS_H 1 + +/* Define if your system has a working `malloc' function. */ +#define HAVE_MALLOC 1 + +/* Define if you have the header file. */ +#define HAVE_MALLOC_H 1 + +/* Define if you have the `memcpy' function. */ +#define HAVE_MEMCPY 1 + +/* Define if you have the `memmove' function. */ +#define HAVE_MEMMOVE 1 + +/* Define if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define if you have the `mergesort function. */ +/* #undef HAVE_MERGESORT */ + +/* Define if you have the `msgctl' function. */ +/* #undef HAVE_MSGCTL */ + +/* Define if you have the `msgget' function. */ +/* #undef HAVE_MSGGET */ + +/* Define if you have the `msgrcv' function. */ +/* #undef HAVE_MSGRCV */ + +/* Define if you have the `msgsnd' function. */ +/* #undef HAVE_MSGSND */ + +/* Define to 1 if you have the header file, and it defines `DIR'. */ +/* #undef HAVE_NDIR_H */ + +/* Define if libtool can extract symbol lists from object files. */ +/* #undef HAVE_PRELOADED_SYMBOLS */ + +/* Define to 1 if you have the `rindex' function. */ +/* #undef HAVE_RINDEX */ + +/* Define if you have the shl_load function. */ +/* #undef HAVE_SHL_LOAD */ + +/* Define if you have the `snprintf' function. */ +/* #undef HAVE_SNPRINTF */ + +/* Define if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDIO_H 1 + +/* Define if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* */ +#define HAVE_STPCPY 1 + +/* Define if you have the `strcasecmp' function. */ +#define HAVE_STRCASECMP 1 + +/* Define if you have the `strchr' function. */ +#define HAVE_STRCHR 1 + +/* Define to 1 if you have the `strcmp' function. */ +#define HAVE_STRCMP 1 + +/* Define if you have the `strcmpi' function. */ +/* #undef HAVE_STRCMPI */ + +/* Define if you have the `strerror' function. */ +#define HAVE_STRERROR 1 + +/* Define if you have the `stricmp' function. */ +/* #undef HAVE_STRICMP */ + +/* Define if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define if you have the `strncasecmp' function. */ +#define HAVE_STRNCASECMP 1 + +/* Define if you have the `strrchr' function. */ +#define HAVE_STRRCHR 1 + +/* Define if you have the `strsep' function. */ +#define HAVE_STRSEP 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_CDEFS_H 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_DL_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_IPC_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_MSG_H */ + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define if you have the header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_QUEUE_H */ + +/* Define if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define if you have that is POSIX.1 compatible. */ +#define HAVE_SYS_WAIT_H 1 + +/* Define if you have the `toascii' function. */ +#define HAVE_TOASCII 1 + +/* Define if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define if you have the `vfork' function. */ +/* #undef HAVE_VFORK */ + +/* Define if you have the header file. */ +/* #undef HAVE_VFORK_H */ + +/* Define if you have the vprintf function. */ +#define HAVE_VPRINTF 1 + +/* Define to 1 if you have the `vsnprintf' function. */ +/* #undef HAVE_VSNPRINTF */ + +/* Define if you have the `wait' function. */ +#define HAVE_WAIT 1 + +/* Define if `fork' works. */ +/* #undef HAVE_WORKING_FORK */ + +/* Define if `vfork' works. */ +/* #undef HAVE_WORKING_VFORK */ + +/* Define if the OS needs help to load dependent libraries for dlopen(). */ +#define LTDL_DLOPEN_DEPLIBS 1 + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LTDL_OBJDIR ".libs/" + +/* Define to the name of the environment variable that determines the dynamic + library search path. */ +#define LTDL_SHLIBPATH_VAR "PATH" + +/* Define to the extension used for shared libraries, say, ".so". */ +#define LTDL_SHLIB_EXT ".dll" + +/* Define to the system default library search path. */ +#define LTDL_SYSSEARCHPATH "/lib:/usr/lib" + +/* Define if dlsym() requires a leading underscode in symbol names. */ +/* #undef NEED_USCORE */ + +/* Name of package */ +#define PACKAGE "yasm" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "bug-yasm@tortall.net" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "yasm" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "yasm `date "+%Y%m%d"`" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "yasm" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "`date "+%Y%m%d"`" + +/* Define if the C compiler supports function prototypes. */ +#define PROTOTYPES 1 + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Combined test for fork/wait/msg* */ +/* #undef USE_FORKWAITMSG */ + +/* Version number of package */ +#define VERSION "0.1.0" + +/* Define if using the dmalloc debugging malloc package */ +/* #undef WITH_DMALLOC */ + +/* Define if `lex' declares `yytext' as a `char *' by default, not a `char[]'. + */ +#define YYTEXT_POINTER 1 + +/* Make sure we see all GNU extensions. */ +/* #undef _GNU_SOURCE */ + +/* Make sure we see all SVID extensions. */ +/* #undef _SVID_SOURCE */ + +/* Define like PROTOTYPES; this can be used by system headers. */ +#define __PROTOTYPES 1 + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to a type to use for `error_t' if it is not otherwise available. */ +#define error_t int + +/* Define as `__inline' if that's what the C compiler calls it, or to nothing + if it is not supported. */ +/* #undef inline */ + +/* Define to `int' if doesn't define. */ +/* #undef pid_t */ + +/* Define to `unsigned' if doesn't define. */ +/* #undef size_t */ + +/* Define as `fork' if `vfork' does not work. */ +/* #undef vfork */ diff --git a/Mkfiles/vc/config.h b/Mkfiles/vc/config.h new file mode 100644 index 00000000..756be2a7 --- /dev/null +++ b/Mkfiles/vc/config.h @@ -0,0 +1,340 @@ +/* $IdPath$ */ + +/* */ +/* #undef ENABLE_NLS */ + +/* Define if you have the `abort' function. */ +#define HAVE_ABORT 1 + +/* Define if you have and it should be used (not on Ultrix). */ +/* #undef HAVE_ALLOCA_H */ + +/* Define to 1 if you have the `argz_append' function. */ +/* #undef HAVE_ARGZ_APPEND */ + +/* Define to 1 if you have the `argz_create_sep' function. */ +/* #undef HAVE_ARGZ_CREATE_SEP */ + +/* Define if you have the header file. */ +/* #undef HAVE_ARGZ_H */ + +/* Define to 1 if you have the `argz_insert' function. */ +/* #undef HAVE_ARGZ_INSERT */ + +/* Define to 1 if you have the `argz_next' function. */ +/* #undef HAVE_ARGZ_NEXT */ + +/* Define to 1 if you have the `argz_stringify' function. */ +/* #undef HAVE_ARGZ_STRINGIFY */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_ASSERT_H */ + +/* Define to 1 if you have the `bcopy' function. */ +/* #undef HAVE_BCOPY */ + +/* */ +/* #undef HAVE_CATGETS */ + +/* Define to 1 if you have the header file. */ +#define HAVE_CTYPE_H 1 + +/* Define if the GNU dcgettext() function is already present or preinstalled. + */ +/* #undef HAVE_DCGETTEXT */ + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_DIRENT_H */ + +/* Define if you have the GNU dld library. */ +/* #undef HAVE_DLD */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_DLD_H */ + +/* Define to 1 if you have the `dlerror' function. */ +/* #undef HAVE_DLERROR */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_DLFCN_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_DL_H */ + +/* Define if you don't have `vprintf' but do have `_doprnt'. */ +/* #undef HAVE_DOPRNT */ + +/* Define to 1 if you have the header file. */ +#define HAVE_ERRNO_H 1 + +/* Define to 1 if the system has the type `error_t'. */ +/* #undef HAVE_ERROR_T */ + +/* Define if you have the `fork' function. */ +/* #undef HAVE_FORK */ + +/* */ +/* #undef HAVE_GETTEXT */ + +/* Define if you have the GNU C Library */ +/* #undef HAVE_GNU_C_LIBRARY */ + +/* Define if you have the iconv() function. */ +/* #undef HAVE_ICONV */ + +/* Define to 1 if you have the `index' function. */ +/* #undef HAVE_INDEX */ + +/* Define if you have the header file. */ +/* #undef HAVE_INTTYPES_H */ + +/* */ +/* #undef HAVE_LC_MESSAGES */ + +/* Define if you have the libdl library or equivalent. */ +/* #undef HAVE_LIBDL */ + +/* Define if you have the header file. */ +#define HAVE_LIMITS_H 1 + +/* Define if your system has a working `malloc' function. */ +#define HAVE_MALLOC 1 + +/* Define if you have the header file. */ +#define HAVE_MALLOC_H 1 + +/* Define if you have the `memcpy' function. */ +#define HAVE_MEMCPY 1 + +/* Define if you have the `memmove' function. */ +#define HAVE_MEMMOVE 1 + +/* Define if you have the header file. */ +/* #undef HAVE_MEMORY_H */ + +/* Define if you have the `mergesort function. */ +/* #undef HAVE_MERGESORT */ + +/* Define if you have the `msgctl' function. */ +/* #undef HAVE_MSGCTL */ + +/* Define if you have the `msgget' function. */ +/* #undef HAVE_MSGGET */ + +/* Define if you have the `msgrcv' function. */ +/* #undef HAVE_MSGRCV */ + +/* Define if you have the `msgsnd' function. */ +/* #undef HAVE_MSGSND */ + +/* Define to 1 if you have the header file, and it defines `DIR'. */ +/* #undef HAVE_NDIR_H */ + +/* Define if libtool can extract symbol lists from object files. */ +/* #undef HAVE_PRELOADED_SYMBOLS */ + +/* Define to 1 if you have the `rindex' function. */ +/* #undef HAVE_RINDEX */ + +/* Define if you have the shl_load function. */ +/* #undef HAVE_SHL_LOAD */ + +/* Define if you have the `snprintf' function. */ +#define HAVE_SNPRINTF 1 +#define snprintf _snprintf + +/* Define if you have the header file. */ +/* #undef HAVE_STDINT_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STDIO_H 1 + +/* Define if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* */ +/* #undef HAVE_STPCPY */ + +/* Define if you have the `strcasecmp' function. */ +/* #undef HAVE_STRCASECMP */ + +/* Define if you have the `strchr' function. */ +#define HAVE_STRCHR 1 + +/* Define to 1 if you have the `strcmp' function. */ +#define HAVE_STRCMP 1 + +/* Define if you have the `strcmpi' function. */ +#define HAVE_STRCMPI 1 +#define strcmpi _strcmpi + +/* Define if you have the `strerror' function. */ +#define HAVE_STRERROR 1 + +/* Define if you have the `stricmp' function. */ +#define HAVE_STRICMP 1 +#define stricmp _stricmp + +/* Define if you have the header file. */ +/* #undef HAVE_STRINGS_H */ + +/* Define if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define if you have the `strncasecmp' function. */ +/* #undef HAVE_STRNCASECMP */ + +/* Define if you have the `strrchr' function. */ +/* #undef HAVE_STRRCHR */ + +/* Define if you have the `strsep' function. */ +/* #undef HAVE_STRSEP */ + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_CDEFS_H */ + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_DL_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_IPC_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_MSG_H */ + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_PARAM_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_QUEUE_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_STAT_H */ + +/* Define if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define if you have that is POSIX.1 compatible. */ +/* #undef HAVE_SYS_WAIT_H */ + +/* Define if you have the `toascii' function. */ +#define HAVE_TOASCII 1 +#define toascii __toascii + +/* Define if you have the header file. */ +/* #undef HAVE_UNISTD_H */ + +/* Define if you have the `vfork' function. */ +/* #undef HAVE_VFORK */ + +/* Define if you have the header file. */ +/* #undef HAVE_VFORK_H */ + +/* Define if you have the vprintf function. */ +#define HAVE_VPRINTF 1 + +/* Define to 1 if you have the `vsnprintf' function. */ +/* #undef HAVE_VSNPRINTF */ + +/* Define if you have the `wait' function. */ +/* #undef HAVE_WAIT */ + +/* Define if `fork' works. */ +/* #undef HAVE_WORKING_FORK */ + +/* Define if `vfork' works. */ +/* #undef HAVE_WORKING_VFORK */ + +/* Define if the OS needs help to load dependent libraries for dlopen(). */ +#define LTDL_DLOPEN_DEPLIBS 1 + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LTDL_OBJDIR ".libs/" + +/* Define to the name of the environment variable that determines the dynamic + library search path. */ +#define LTDL_SHLIBPATH_VAR "PATH" + +/* Define to the extension used for shared libraries, say, ".so". */ +#define LTDL_SHLIB_EXT ".dll" + +/* Define to the system default library search path. */ +#define LTDL_SYSSEARCHPATH "/lib:/usr/lib" + +/* Define if dlsym() requires a leading underscode in symbol names. */ +/* #undef NEED_USCORE */ + +/* Name of package */ +#define PACKAGE "yasm" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "bug-yasm@tortall.net" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "yasm" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "yasm `date "+%Y%m%d"`" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "yasm" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "`date "+%Y%m%d"`" + +/* Define if the C compiler supports function prototypes. */ +#define PROTOTYPES 1 + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Combined test for fork/wait/msg* */ +/* #undef USE_FORKWAITMSG */ + +/* Version number of package */ +#define VERSION "0.1.0" + +/* Define if using the dmalloc debugging malloc package */ +/* #undef WITH_DMALLOC */ + +/* Define if `lex' declares `yytext' as a `char *' by default, not a `char[]'. + */ +#define YYTEXT_POINTER 1 + +/* Make sure we see all GNU extensions. */ +/* #undef _GNU_SOURCE */ + +/* Make sure we see all SVID extensions. */ +/* #undef _SVID_SOURCE */ + +/* Define like PROTOTYPES; this can be used by system headers. */ +#define __PROTOTYPES 1 + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to a type to use for `error_t' if it is not otherwise available. */ +#define error_t int + +/* Define as `__inline' if that's what the C compiler calls it, or to nothing + if it is not supported. */ +/* #undef inline */ + +/* Define to `int' if doesn't define. */ +#define pid_t int + +/* Define to `unsigned' if doesn't define. */ +/* #undef size_t */ + +/* Define as `fork' if `vfork' does not work. */ +/* #undef vfork */