DJGPP and Visual C++. These are build-only (not development).
svn path=/trunk/yasm/; revision=290
--- /dev/null
+# $IdPath$
+#
+# Ultra-flat Makefile for DJGPP.
+# Does NOT depend on or use configure.
+#
+# Works for simple build but *not* for development (no clean, dist, etc).
+# 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 -Inointl
+CC=gcc
+
+all: src/yasm
+
+SRC_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/parser.o \
+ src/intnum.o \
+ src/floatnum.o \
+ src/ternary.o \
+ src/bitvect.o \
+ src/xmalloc.o \
+ src/xstrdup.o \
+ src/strcasecmp.o
+
+SRC_PREPROCS_RAW_OBJS= \
+ src/preprocs/raw/preproc.o
+
+SRC_PREPROCS_OBJS= \
+ $(SRC_PREPROCS_RAW_OBJS)
+
+SRC_PARSERS_NASM_OBJS= \
+ src/parsers/nasm/parser.o \
+ src/parsers/nasm/bison.o \
+ src/parsers/nasm/token.o
+
+SRC_PARSERS_OBJS= \
+ $(SRC_PARSERS_NASM_OBJS)
+
+SRC_OPTIMIZERS_DBG_OBJS= \
+ src/optimizers/dbg/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_OBJS= \
+ src/main.o \
+ $(SRC_OBJS) \
+ $(SRC_PREPROCS_OBJS) \
+ $(SRC_PARSERS_OBJS) \
+ $(SRC_OPTIMIZERS_OBJS) \
+ $(SRC_OBJFMTS_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 $@ $<
+
+.c.o:
+ $(CC) -c $(CFLAGS) -o $@ $<
+
--- /dev/null
+# $IdPath$\r
+#\r
+# Ultra-flat Makefile for Visual C++.\r
+# Does NOT depend on or use configure.\r
+#\r
+# Works for simple build but *not* for development (no clean, dist, etc).\r
+# Also, WARNING, no header dependencies are included!\r
+#\r
+# How to compile:\r
+# copy Mkfiles/config.h.vc config.h\r
+# nmake -fMkfiles/Makefile.vc\r
+\r
+CFLAGS=/DHAVE_CONFIG_H /I. /Isrc /Inointl\r
+CC=cl\r
+\r
+all: src\yasm.exe\r
+\r
+SRC_OBJS= \\r
+ src\bytecode.obj \\r
+ src\errwarn.obj \\r
+ src\expr.obj \\r
+ src\symrec.obj \\r
+ src\globals.obj \\r
+ src\file.obj \\r
+ src\section.obj \\r
+ src\options.obj \\r
+ src\parser.obj \\r
+ src\intnum.obj \\r
+ src\floatnum.obj \\r
+ src\ternary.obj \\r
+ src\bitvect.obj \\r
+ src\xmalloc.obj \\r
+ src\xstrdup.obj \\r
+ src\strcasecmp.obj\r
+\r
+SRC_PREPROCS_RAW_OBJS= \\r
+ src\preprocs\raw\preproc.obj\r
+\r
+SRC_PREPROCS_OBJS= \\r
+ $(SRC_PREPROCS_RAW_OBJS)\r
+\r
+SRC_PARSERS_NASM_OBJS= \\r
+ src\parsers\nasm\parser.obj \\r
+ src\parsers\nasm\bison.obj \\r
+ src\parsers\nasm\token.obj\r
+\r
+SRC_PARSERS_OBJS= \\r
+ $(SRC_PARSERS_NASM_OBJS)\r
+\r
+SRC_OPTIMIZERS_DBG_OBJS= \\r
+ src\optimizers\dbg\optimizer.obj\r
+\r
+SRC_OPTIMIZERS_OBJS= \\r
+ $(SRC_OPTIMIZERS_DBG_OBJS)\r
+\r
+SRC_OBJFMTS_DBG_OBJS= \\r
+ src\objfmts\dbg\objfmt.obj\r
+\r
+SRC_OBJFMTS_OBJS= \\r
+ $(SRC_OBJFMTS_DBG_OBJS)\r
+\r
+YASM_OBJS= \\r
+ src\main.obj \\r
+ $(SRC_OBJS) \\r
+ $(SRC_PREPROCS_OBJS) \\r
+ $(SRC_PARSERS_OBJS) \\r
+ $(SRC_OPTIMIZERS_OBJS) \\r
+ $(SRC_OBJFMTS_OBJS)\r
+\r
+src\yasm.exe: $(YASM_OBJS)\r
+ $(CC) /Fesrc\yasm.exe $(YASM_OBJS)\r
+\r
+src\parsers\nasm\token.o: src\parsers\nasm\token.c\r
+ $(CC) /c $(CFLAGS) /Isrc/parsers/nasm /Fo$@ $<\r
+\r
+.c.obj:\r
+ $(CC) /c $(CFLAGS) /Fo$@ $<\r
+\r
--- /dev/null
+/* $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 <alloca.h> 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 <sys/wait.h> 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 <sys/types.h> doesn't define. */
+/* #undef off_t */
+
+/* Define to `int' if <sys/types.h> doesn't define. */
+/* #undef pid_t */
+
+/* Define to `unsigned' if <sys/types.h> 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 <sys/queue.h> 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 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 <argz.h> header file. */
+/* #undef HAVE_ARGZ_H */
+
+/* Define if you have the <limits.h> header file. */
+#define HAVE_LIMITS_H
+
+/* Define if you have the <locale.h> header file. */
+#define HAVE_LOCALE_H
+
+/* Define if you have the <malloc.h> header file. */
+#define HAVE_MALLOC_H
+
+/* Define if you have the <nl_types.h> header file. */
+/* #undef HAVE_NL_TYPES_H */
+
+/* Define if you have the <string.h> header file. */
+#define HAVE_STRING_H
+
+/* Define if you have the <sys/cdefs.h> header file. */
+#define HAVE_SYS_CDEFS_H
+
+/* Define if you have the <sys/ipc.h> header file. */
+/* #undef HAVE_SYS_IPC_H */
+
+/* Define if you have the <sys/msg.h> header file. */
+/* #undef HAVE_SYS_MSG_H */
+
+/* Define if you have the <sys/param.h> header file. */
+#define HAVE_SYS_PARAM_H
+
+/* Define if you have the <sys/queue.h> header file. */
+/* #undef HAVE_SYS_QUEUE_H */
+
+/* Define if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H
+
+/* Define if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H
+
+/* 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 */
--- /dev/null
+/* $IdPath$ */\r
+\r
+#ifndef YASM_CONFIG_H\r
+#define YASM_CONFIG_H\r
+\r
+/* Define if using alloca.c. */\r
+/* #undef C_ALLOCA */\r
+\r
+/* Define to empty if the keyword does not work. */\r
+/* #undef const */\r
+\r
+/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.\r
+ This function is required for alloca.c support on those systems. */\r
+/* #undef CRAY_STACKSEG_END */\r
+\r
+/* Define if you have alloca, as a function or macro. */\r
+/* #undef HAVE_ALLOCA */\r
+\r
+/* Define if you have <alloca.h> and it should be used (not on Ultrix). */\r
+/* #undef HAVE_ALLOCA_H */\r
+\r
+/* Define if you don't have vprintf but do have _doprnt. */\r
+/* #undef HAVE_DOPRNT */\r
+\r
+/* Define if you have a working `mmap' system call. */\r
+/* #undef HAVE_MMAP */\r
+\r
+/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */\r
+/* #undef HAVE_SYS_WAIT_H */\r
+\r
+/* Define if you have the vprintf function. */\r
+#define HAVE_VPRINTF\r
+\r
+/* Define as __inline if that's what the C compiler calls it. */\r
+/* #undef inline */\r
+\r
+/* Define to `long' if <sys/types.h> doesn't define. */\r
+/* #undef off_t */\r
+\r
+/* Define to `int' if <sys/types.h> doesn't define. */\r
+#define pid_t int\r
+\r
+/* Define to `unsigned' if <sys/types.h> doesn't define. */\r
+/* #undef size_t */\r
+\r
+/* If using the C implementation of alloca, define if you know the\r
+ direction of stack growth for your system; otherwise it will be\r
+ automatically deduced at run-time.\r
+ STACK_DIRECTION > 0 => grows toward higher addresses\r
+ STACK_DIRECTION < 0 => grows toward lower addresses\r
+ STACK_DIRECTION = 0 => direction of growth unknown\r
+ */\r
+/* #undef STACK_DIRECTION */\r
+\r
+/* Define if you have the ANSI C header files. */\r
+#define STDC_HEADERS\r
+\r
+/* Define if lex declares yytext as a char * by default, not a char[]. */\r
+#define YYTEXT_POINTER\r
+\r
+/* Workaround for bad <sys/queue.h> implementations. */\r
+#define HAVE_BOGUS_SYS_QUEUE_H\r
+\r
+/* gettext tests */\r
+/* #undef ENABLE_NLS */\r
+/* #undef HAVE_CATGETS */\r
+/* #undef HAVE_GETTEXT */\r
+/* #undef HAVE_LC_MESSAGES */\r
+/* #undef HAVE_STPCPY */\r
+\r
+/* combined test for fork/way/msg* */\r
+/* #undef USE_FORKWAITMSG */\r
+\r
+/* Check for GNU C Library */\r
+/* #undef HAVE_GNU_C_LIBRARY */\r
+\r
+/* Define if you have the __argz_count function. */\r
+/* #undef HAVE___ARGZ_COUNT */\r
+\r
+/* Define if you have the __argz_next function. */\r
+/* #undef HAVE___ARGZ_NEXT */\r
+\r
+/* Define if you have the __argz_stringify function. */\r
+/* #undef HAVE___ARGZ_STRINGIFY */\r
+\r
+/* Define if you have the abort function. */\r
+#define HAVE_ABORT\r
+\r
+/* Define if you have the dcgettext function. */\r
+/* #undef HAVE_DCGETTEXT */\r
+\r
+/* Define if you have the fork function. */\r
+/* #undef HAVE_FORK */\r
+\r
+/* Define if you have the getcwd function. */\r
+/* #undef HAVE_GETCWD */\r
+\r
+/* Define if you have the getpagesize function. */\r
+/* #undef HAVE_GETPAGESIZE */\r
+\r
+/* Define if you have the memcpy function. */\r
+#define HAVE_MEMCPY\r
+\r
+/* Define if you have the msgctl function. */\r
+/* #undef HAVE_MSGCTL */\r
+\r
+/* Define if you have the msgget function. */\r
+/* #undef HAVE_MSGGET */\r
+\r
+/* Define if you have the msgrcv function. */\r
+/* #undef HAVE_MSGRCV */\r
+\r
+/* Define if you have the msgsnd function. */\r
+/* #undef HAVE_MSGSND */\r
+\r
+/* Define if you have the munmap function. */\r
+/* #undef HAVE_MUNMAP */\r
+\r
+/* Define if you have the putenv function. */\r
+/* #undef HAVE_PUTENV */\r
+\r
+/* Define if you have the setenv function. */\r
+/* #undef HAVE_SETENV */\r
+\r
+/* Define if you have the setlocale function. */\r
+/* #undef HAVE_SETLOCALE */\r
+\r
+/* Define if you have the snprintf function. */\r
+#define HAVE_SNPRINTF\r
+#define snprintf _snprintf\r
+\r
+/* Define if you have the stpcpy function. */\r
+/* #undef HAVE_STPCPY */\r
+\r
+/* Define if you have the strcasecmp function. */\r
+/* #undef HAVE_STRCASECMP */\r
+\r
+/* Define if you have the strchr function. */\r
+#define HAVE_STRCHR\r
+\r
+/* Define if you have the strcmpi function. */\r
+#define HAVE_STRCMPI\r
+#define strcmpi _strcmpi\r
+\r
+/* Define if you have the strdup function. */\r
+#define HAVE_STRDUP\r
+#define strdup _strdup\r
+\r
+/* Define if you have the strerror function. */\r
+#define HAVE_STRERROR\r
+\r
+/* Define if you have the stricmp function. */\r
+#define HAVE_STRICMP\r
+#define stricmp _stricmp\r
+\r
+/* Define if you have the strsep function. */\r
+/* #undef HAVE_STRSEP */\r
+\r
+/* Define if you have the toascii function. */\r
+#define HAVE_TOASCII\r
+#define toascii __toascii\r
+\r
+/* Define if you have the wait function. */\r
+/* #undef HAVE_WAIT */\r
+\r
+/* Define if you have the <argz.h> header file. */\r
+/* #undef HAVE_ARGZ_H */\r
+\r
+/* Define if you have the <limits.h> header file. */\r
+#define HAVE_LIMITS_H\r
+\r
+/* Define if you have the <locale.h> header file. */\r
+#define HAVE_LOCALE_H\r
+\r
+/* Define if you have the <malloc.h> header file. */\r
+#define HAVE_MALLOC_H\r
+\r
+/* Define if you have the <nl_types.h> header file. */\r
+/* #undef HAVE_NL_TYPES_H */\r
+\r
+/* Define if you have the <string.h> header file. */\r
+#define HAVE_STRING_H\r
+\r
+/* Define if you have the <sys/cdefs.h> header file. */\r
+/* #undef HAVE_SYS_CDEFS_H */\r
+\r
+/* Define if you have the <sys/ipc.h> header file. */\r
+/* #undef HAVE_SYS_IPC_H */\r
+\r
+/* Define if you have the <sys/msg.h> header file. */\r
+/* #undef HAVE_SYS_MSG_H */\r
+\r
+/* Define if you have the <sys/param.h> header file. */\r
+/* #undef HAVE_SYS_PARAM_H */\r
+\r
+/* Define if you have the <sys/queue.h> header file. */\r
+/* #undef HAVE_SYS_QUEUE_H */\r
+\r
+/* Define if you have the <sys/types.h> header file. */\r
+#define HAVE_SYS_TYPES_H\r
+\r
+/* Define if you have the <unistd.h> header file. */\r
+/* #undef HAVE_UNISTD_H */\r
+\r
+/* Define if you have the i library (-li). */\r
+/* #undef HAVE_LIBI */\r
+\r
+/* Name of package */\r
+#define PACKAGE "yasm"\r
+\r
+/* Version number of package */\r
+#define VERSION "0.0.1"\r
+\r
+\r
+#endif /* YASM_CONFIG_H */\r