Changeset 9063 for trunk/make/testcase
- Timestamp:
- Aug 20, 2002, 11:14:30 PM (23 years ago)
- Location:
- trunk/make/testcase
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/make/testcase/Makefile
r9059 r9063 1 # $Id: Makefile,v 1. 3 2002-08-20 19:09:59 bird Exp $1 # $Id: Makefile,v 1.4 2002-08-20 21:14:29 bird Exp $ 2 2 3 3 # … … 94 94 @echo # >> $@ 95 95 @echo # CC_ENVIRONMENTS >> $@ 96 # WAT11C-16 doesn't work :((97 96 @for %%j in ($(MODES)) do $(COMSPEC) /C "echo set BUILD_MODE=%%j >> $@ & \ 98 for %%%%i in ($(CC_ENVIRONMENTS :WAT11C-16=)) do echo $(TOOL_MAKE) -f dll-prog-c.mak BUILD_ENV_FORCE=%%%%i rebuild test clean >> $@"97 for %%%%i in ($(CC_ENVIRONMENTS)) do echo $(TOOL_MAKE) -f dll-prog-c.mak BUILD_ENV_FORCE=%%%%i rebuild test clean >> $@" 99 98 !endif 100 99 !if 1 -
trunk/make/testcase/dll-c.c
r8423 r9063 1 /* $Id: dll-c.c,v 1. 1 2002-05-16 11:37:06bird Exp $1 /* $Id: dll-c.c,v 1.2 2002-08-20 21:14:29 bird Exp $ 2 2 * 3 3 * Test DLL. … … 23 23 24 24 #if (defined(__IBMCPP__) || defined(__IBMC__)) 25 25 /* 26 * IBM C/C++ 27 */ 26 28 #define DLLENTRYPOINT_CCONV _System 27 29 #define DLLENTRYPOINT_NAME _DLL_InitTerm … … 34 36 #define ctordtorTerm() __ctordtorTerm() 35 37 36 #elif (__IBMCPP__ == 360) || (__IBMC__ == 360)38 #elif (__IBMCPP__ >= 360) || (__IBMC__ >= 360) 37 39 void _Optlink __ctordtorInit( int flag ); 38 40 #define ctordtorInit() __ctordtorInit(0) … … 42 44 43 45 #else 44 #error "Unknown compiler!"46 #error "Unknown IBM compiler!" 45 47 #endif 46 48 … … 48 50 void _Optlink _CRT_term(void); 49 51 52 50 53 #elif defined(__WATCOMC__) 51 54 /* 55 * Watcom C 56 */ 52 57 #define DLLENTRYPOINT_CCONV _syscall 53 58 #define DLLENTRYPOINT_NAME LibMain … … 59 64 #define _CRT_term() ((void)0) 60 65 61 #endif 66 #ifdef __16BIT__ 67 #define LOADDS _loadds 68 #endif 69 70 71 #elif defined(_MSC_VER) 72 /* 73 * MS C 74 */ 75 #ifdef __16BIT__ 76 #define LOADDS _loadds 77 #endif 78 79 #elif defined(__GNUC__) && defined(__EMX__) 80 /* 81 * GCC+EMX 82 */ 83 #define DLLENTRYPOINT_CCONV _System 84 #define DLLENTRYPOINT_NAME _DLL_InitTerm 85 86 #define ctordtorInit() ((void)0) 87 #define ctordtorTerm() ((void)0) 88 89 int _CRT_init(void); 90 void _CRT_term(void); 91 92 93 #endif /* compilers */ 62 94 63 95 #ifdef __cplusplus … … 65 97 #endif 66 98 99 100 #ifndef LOADDS 101 #ifdef __16BIT__ 102 #error "16-bit compiles must must define LOADDS!" 103 #else 104 #define LOADDS 105 #endif 106 #endif 67 107 68 108 … … 76 116 #ifdef OS2 77 117 #include <os2.h> 78 #define OSCALL APIENTRY 118 #define OSCALL APIENTRY LOADDS 79 119 #endif 80 120 … … 83 123 * @returns 0 on success. 84 124 */ 85 int OSCALL FOO42(void)125 int OSCALL LOADDS FOO42(void) 86 126 { 87 127 long double lrd = asin(cos(0)); … … 124 164 125 165 126 int OSCALL FOONAME(void)166 int OSCALL LOADDS FOONAME(void) 127 167 { 128 168 puts("FOOName"); -
trunk/make/testcase/dll-c.mak
r9053 r9063 1 # $Id: dll-c.mak,v 1. 2 2002-08-20 07:56:24bird Exp $1 # $Id: dll-c.mak,v 1.3 2002-08-20 21:14:29 bird Exp $ 2 2 3 3 # Testcase for makeing simple C DLLs. 4 4 5 5 # root & setup 6 !if "$(BUILD_ENV)" == "WAT11C-16" 6 !if "$(BUILD_ENV)" == "WAT11C-16" || "$(BUILD_ENV)" == "MSCV6-16" 7 7 ALL_MODEL=LARGE 8 8 !endif 9 TARGET_MODE = DLL #watcom workaround (again!)9 TARGET_MODE = DLL #watcom+msc6-16 workaround (again!) 10 10 PATH_ROOT=..\.. 11 11 !include $(PATH_ROOT)\make\setup.mak … … 17 17 18 18 # rules and more 19 RULES_FORWARD = test 19 20 !include $(MAKE_INCLUDE_PROCESS) 21 22 !if !$(BUILD_FORWARDING) 20 23 21 24 … … 38 41 # validate that the executable actually runs and produces the desired output. 39 42 # 43 OUTFILE=out 40 44 test: 41 !if "$(MAKE_INCLUDE_PROCESS:process.forwarder=)" == "$(MAKE_INCLUDE_PROCESS)"42 45 $(TOOL_MAKE) -f dll-prog-c.mak rebuild 43 $(PATH_OBJ)\dll-prog-c.exe\dll-prog-c.exe $(TARGET) > out46 $(PATH_OBJ)\dll-prog-c.exe\dll-prog-c.exe $(TARGET) > $(OUTFILE) 44 47 ! ifdef BUILD_VERBOSE 45 type out48 type $(OUTFILE) 46 49 ! endif 47 $(TOOL_CMP) out<<50 $(TOOL_CMP) $(OUTFILE) << 48 51 DLLInit 49 52 $(_STR1) … … 53 56 << 54 57 $(TOOL_MAKE) -f dll-prog-c.mak clean 55 !else 56 ! ifndef BUILD_VERBOSE 57 @ \ 58 ! endif 59 $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@ 58 60 59 !endif 61 60 -
trunk/make/testcase/dll-prog-c.mak
r9054 r9063 1 # $Id: dll-prog-c.mak,v 1. 2 2002-08-20 08:01:46bird Exp $1 # $Id: dll-prog-c.mak,v 1.3 2002-08-20 21:14:29 bird Exp $ 2 2 3 3 # Testcase for makeing simple C DLLs. … … 13 13 14 14 # rules and more 15 RULES_FORWARD = test 15 16 !include $(MAKE_INCLUDE_PROCESS) 16 17 18 !if !$(BUILD_FORWARDING) 17 19 18 20 … … 34 36 # validate that the executable actually runs and produces the desired output. 35 37 # 38 OUTFILE = out 36 39 test: 37 !if "$(MAKE_INCLUDE_PROCESS:process.forwarder=)" == "$(MAKE_INCLUDE_PROCESS)"38 40 $(TOOL_MAKE) -f dll-c.mak rebuild 39 $(TARGET) $(PATH_OBJ)\dll-c.dll\dll-c.dll > out41 $(TARGET) $(PATH_OBJ)\dll-c.dll\dll-c.dll > $(OUTFILE) 40 42 ! ifdef BUILD_VERBOSE 41 type out43 type $(OUTFILE) 42 44 ! endif 43 $(TOOL_CMP) out<<45 $(TOOL_CMP) $(OUTFILE) << 44 46 DLLInit 45 47 $(_STR1) … … 49 51 << 50 52 $(TOOL_MAKE) -f dll-c.mak clean 51 !else 52 ! ifndef BUILD_VERBOSE 53 @ \ 54 ! endif 55 $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@ 53 56 54 !endif 57 55 -
trunk/make/testcase/prog-c-as-cxx.mak
r8423 r9063 1 # $Id: prog-c-as-cxx.mak,v 1. 1 2002-05-16 11:37:07bird Exp $1 # $Id: prog-c-as-cxx.mak,v 1.2 2002-08-20 21:14:29 bird Exp $ 2 2 3 3 # Testcase for makeing simple C programs as C++. … … 14 14 15 15 # rules and more 16 RULES_FORWARD = test 16 17 !include $(MAKE_INCLUDE_PROCESS) 17 18 19 !if !$(BUILD_FORWARDING) 18 20 19 21 # some helpers for the output. … … 35 37 # 36 38 test: 37 !if "$(MAKE_INCLUDE_PROCESS:process.forwarder=)" == "$(MAKE_INCLUDE_PROCESS)"38 39 $(TARGET) > out 39 ! 40 !ifdef BUILD_VERBOSE 40 41 type out 41 ! 42 !endif 42 43 $(TOOL_CMP) out << 43 44 $(_STR1) … … 46 47 47 48 << 48 !else 49 ! ifndef BUILD_VERBOSE 50 @ \ 51 ! endif 52 $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@ 49 53 50 !endif -
trunk/make/testcase/prog-c.mak
r8423 r9063 1 # $Id: prog-c.mak,v 1. 1 2002-05-16 11:37:07bird Exp $1 # $Id: prog-c.mak,v 1.2 2002-08-20 21:14:30 bird Exp $ 2 2 3 3 # Testcase for makeing simple C programs. … … 13 13 14 14 # rules and more 15 RULES_FORWARD = test 15 16 !include $(MAKE_INCLUDE_PROCESS) 17 18 !if !$(BUILD_FORWARDING) 16 19 17 20 … … 34 37 # 35 38 test: 36 !if "$(MAKE_INCLUDE_PROCESS:process.forwarder=)" == "$(MAKE_INCLUDE_PROCESS)"37 39 $(TARGET) > out 38 40 ! ifdef BUILD_VERBOSE … … 45 47 46 48 << 47 !else 48 ! ifndef BUILD_VERBOSE 49 @ \ 50 ! endif 51 $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@ 49 52 50 !endif -
trunk/make/testcase/prog-cxx-as-c.mak
r8423 r9063 1 # $Id: prog-cxx-as-c.mak,v 1. 1 2002-05-16 11:37:07bird Exp $1 # $Id: prog-cxx-as-c.mak,v 1.2 2002-08-20 21:14:30 bird Exp $ 2 2 3 3 # Testcase for makeing simple C programs as C++. … … 9 9 10 10 # target config. 11 TARGET_NAME = prog-c 12 MAKEFILE = prog-c -as-cxx.mak11 TARGET_NAME = prog-cxx 12 MAKEFILE = prog-cxx-as-c.mak 13 13 TARGET_LIBS = $(LIB_C_OBJ) $(LIB_OS) # use the static library! 14 14 15 15 # rules and more 16 RULES_FORWARD = test 16 17 !include $(MAKE_INCLUDE_PROCESS) 17 18 19 !if !$(BUILD_FORWARDING) 18 20 19 21 # some helpers for the output. … … 35 37 # 36 38 test: 37 !if "$(MAKE_INCLUDE_PROCESS:process.forwarder=)" == "$(MAKE_INCLUDE_PROCESS)"38 39 $(TARGET) > out 39 ! 40 !ifdef BUILD_VERBOSE 40 41 type out 41 ! 42 !endif 42 43 $(TOOL_CMP) out << 43 44 $(_STR1) … … 46 47 47 48 << 48 !else 49 ! ifndef BUILD_VERBOSE 50 @ \ 51 ! endif 52 $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@ 49 53 50 !endif -
trunk/make/testcase/prog-cxx.mak
r8423 r9063 1 # $Id: prog-cxx.mak,v 1. 1 2002-05-16 11:37:08bird Exp $1 # $Id: prog-cxx.mak,v 1.2 2002-08-20 21:14:30 bird Exp $ 2 2 3 3 # Testcase for makeing simple C++ programs. … … 13 13 14 14 # rules and more 15 RULES_FORWARD = test 15 16 !include $(MAKE_INCLUDE_PROCESS) 17 18 !if !$(BUILD_FORWARDING) 16 19 17 20 … … 34 37 # 35 38 test: 36 !if "$(MAKE_INCLUDE_PROCESS:process.forwarder=)" == "$(MAKE_INCLUDE_PROCESS)"37 39 $(TARGET) > out 38 40 ! ifdef BUILD_VERBOSE … … 45 47 46 48 << 47 !else 48 ! ifndef BUILD_VERBOSE 49 @ \ 50 ! endif 51 $(TOOL_BUILDENV) $(BUILD_ENVS_CHANGE) * $(TOOL_MAKE) -f $(MAKEFILE) $@ 49 52 50 !endif 51
Note:
See TracChangeset
for help on using the changeset viewer.