diff --git a/build/config-vxworks-mips.h b/build/config-vxworks-mips.h new file mode 100644 index 0000000..9f3d08a --- /dev/null +++ b/build/config-vxworks-mips.h @@ -0,0 +1,224 @@ +/* mgplusconfig.h. Generated from mgplusconfig.h.in by configure. */ +/* mgplusconfig.h.in. Generated from configure.in by autoheader. */ + +/* Define to 1 if the `closedir' function returns void instead of `int'. */ +/* #undef CLOSEDIR_VOID */ + +/* Define to 1 if you have the `bzero' function. */ +#define HAVE_BZERO 1 + +/* Define to 1 if you have the declaration of `_MGRM_THREADS', and to 0 if you + don't. */ +#define HAVE_DECL__MGRM_THREADS 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +#define HAVE_DIRENT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ +/* #undef HAVE_DOPRNT */ + +/* Define to 1 if you have the `dup2' function. */ +#define HAVE_DUP2 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_FCNTL_H 1 + +/* Define to 1 if you have the `fork' function. */ +#define HAVE_FORK 1 + +/* Define to 1 if you have the `getcwd' function. */ +#define HAVE_GETCWD 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `memmove' function. */ +#define HAVE_MEMMOVE 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `memset' function. */ +#define HAVE_MEMSET 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MINIGUI_COMMON_H 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. */ +/* #undef HAVE_NDIR_H */ + +/* Define to 1 if you have the `putenv' function. */ +#define HAVE_PUTENV 1 + +/* Define to 1 if `stat' has the bug that it succeeds when given the + zero-length file name argument. */ +/* #undef HAVE_STAT_EMPTY_STRING_BUG */ + +/* Define to 1 if stdbool.h conforms to C99. */ +#define HAVE_STDBOOL_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `strchr' function. */ +#define HAVE_STRCHR 1 + +/* Define to 1 if you have the `strdup' function. */ +#define HAVE_STRDUP 1 + +/* Define to 1 if you have the `strerror' function. */ +#define HAVE_STRERROR 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strstr' function. */ +#define HAVE_STRSTR 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. */ +#define HAVE_SYS_IOCTL_H 1 + +/* Define to 1 if you have the header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have that is POSIX.1 compatible. */ +#define HAVE_SYS_WAIT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_TERMIOS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_TERMIO_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the `vfork' function. */ +#define HAVE_VFORK 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_VFORK_H */ + +/* Define to 1 if you have the `vprintf' function. */ +#define HAVE_VPRINTF 1 + +/* Define to 1 if `fork' works. */ +#define HAVE_WORKING_FORK 1 + +/* Define to 1 if `vfork' works. */ +#define HAVE_WORKING_VFORK 1 + +/* Define to 1 if the system has the type `_Bool'. */ +#define HAVE__BOOL 1 + +/* Define to 1 if `lstat' dereferences a symlink specified with a trailing + slash. */ +#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 + +/* Binary age of mGPlus */ +#define MGPLUS_BINARY_AGE 0 + +/* Interface age of mGPlus */ +#define MGPLUS_INTERFACE_AGE 0 + +/* Major version of mGPlus */ +#define MGPLUS_MAJOR_VERSION 1 + +/* Micro version of mGPlus */ +#define MGPLUS_MICRO_VERSION 0 + +/* Minor version of mGPlus */ +#define MGPLUS_MINOR_VERSION 2 + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "libmgplus" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "libmgplus 1.2.0" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "libmgplus" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "1.2.0" + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define to 1 if your declares `struct tm'. */ +/* #undef TM_IN_SYS_TIME */ + +/* Define if support color composite */ +#define _MGPLUS_COLORCOMPOSITE 1 + +/* Define if support TrueType font based on FreeType2 */ +/* #undef _MGPLUS_FONT_FT2 */ + +/* Define if support gradient fill */ +#define _MGPLUS_GRADIENTFILL 1 + +/* Define if include Fashion LFRDR */ +#define _MGPLUS_LFRDR_FASHION 1 + +/* Define if support pixel format ABGR32 */ +#define _MGPLUS_PIXFMT_ABGR32 1 + +/* Define if support pixel format BGR24 */ +#define _MGPLUS_PIXFMT_BGR24 1 + +/* Define if support pixel format BGRA32 */ +#define _MGPLUS_PIXFMT_BGRA32 1 + +/* Define if support pixel format RGB24 */ +#define _MGPLUS_PIXFMT_RGB24 1 + +/* Define if support pixel format RGB555 */ +#define _MGPLUS_PIXFMT_RGB555 1 + +/* Define if support pixel format RGB565 */ +#define _MGPLUS_PIXFMT_RGB565 1 + +/* Define if support pixel format RGBA32 */ +#define _MGPLUS_PIXFMT_RGBA32 1 + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +/* #undef inline */ +#endif + +/* Define to `int' if does not define. */ +/* #undef pid_t */ + +/* Define as `fork' if `vfork' does not work. */ +/* #undef vfork */ diff --git a/build/rules-mips.vxworks b/build/rules-mips.vxworks new file mode 100644 index 0000000..0cb228e --- /dev/null +++ b/build/rules-mips.vxworks @@ -0,0 +1,34 @@ +# rules for pc-vxworks + +AS= +CC=ccmips +CXX=c++mips +CPP=ccmips +AR=armips +RANLIB=ranlibmips +MAKE=/usr/bin/make + +ARFLAGS=crus +COFLAG=-c + +OBJ=o +LIBA=a + +SOFLAGS=-o + +#PREFIX=/cygdrive/e/MiniGUI-3.0.8-EE-VxWorks-MIPS/MiniGUI-3.0.8-EE-VxWorks-MIPS/target +PREFIX=/cygdrive/c/minigui/target +#vxworks6.0 +#TARGET_DIR=C:/WindRiver/vxworks-6.0/target + +#vxworks5.5.1 +TARGET_DIR=/cygdrive/c/Tornado2.2/target + +LOCAL_INC+=-I${TARGET_DIR}/h +#abs_top_srcdir=/cygdrive/c/minigui/minigui +#abs_top_srcdir=/cygdrive/e/MiniGUI-3.0.8-EE-VxWorks-MIPS/MiniGUI-3.0.8-EE-VxWorks-MIPS/minigui/ +CFLAGS+=-g -G 0 -mno-branch-likely -mips3 -EL -D__LITTLE_ENDIAN__ -fno-builtin -DMIPSEL -D__mips__ -D__MIPSEL__ -DCPU=MIPS64 -DTOOL_FAMILY=gnu -DTOOL=gnule +CXXFLAGS+=-g -G 0 -mno-branch-likely -mips3 -EL -D__LITTLE_ENDIAN__ -fno-builtin -DMIPSEL -D__mips__ -D__MIPSEL__ -DCPU=MIPS64 -DTOOL_FAMILY=gnu -DTOOL=gnule + +TARGET_OS=vxworks +#CFLAGS+=-g -mips3 -EL -D__LITTLE_ENDIAN__ -Wall -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL -DMIPSEL -DCPU=MIPS64 -D__mips__ -D__MIPSEL__ diff --git a/build/rules-pc.linux b/build/rules-pc.linux new file mode 100644 index 0000000..5b74797 --- /dev/null +++ b/build/rules-pc.linux @@ -0,0 +1,37 @@ +# rules for pc-linux + +# set your own targaet_os +TARGET_OS=linux + +################################################## +# set your compile tool # +CC=gcc +CXX=g++ +CPP=g++ +AR=ar +AS=as +RANLIB=ranlib +MAKE=/usr/bin/make +################################################## + +ARFLAGS=-rc +COFLAG=-c + +OBJ=o +LIBA=a + +################################################## +# if you don't want to create dynamic, delete it # +LIBSO=so +SOFLAGS=-fPIC -shared -o +################################################## + + +################################################## +# set your compile flags and install prefix path # +#PREFIX=/usr/local +CFLAGS+=-g -Wall -fPIC +CXXFLAGS+=-g -Wall -fPIC `pkg-config --cflags freetype2` +LDFLAGS+= +################################################## + diff --git a/build/rules.sample b/build/rules.sample new file mode 100644 index 0000000..26354fc --- /dev/null +++ b/build/rules.sample @@ -0,0 +1,38 @@ +# an sample of the makefile.ng rules + +# set your own targaet_os +TARGET_OS=your_target_os + +################################################## +# set your compile tool # +CC=gcc +CXX=g++ +CPP=g++ +AR=ar +AS=as +RANLIB=ranlib +MAKE=/usr/bin/make +################################################## + +ARFLAGS=-rc +COFLAG=-c + +OBJ=o +LIBA=a + +################################################## +# if you don't want to create dynamic, delete it # +LIBSO=so +SOFLAGS=-fPIC -shared -o +################################################## + + +################################################## +# set your compile flags and install prefix path # +PREFIX=/usr/local +CFLAGS+=-g -Wall +CXXFLAGS+=-g -Wall +CPPFLAGS+=-g -Wall +LDFLAGS+= +################################################## +