Kaydet (Commit) f05f8318 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Drop OS2

üst 594c9038
...@@ -99,11 +99,6 @@ BUILD_ACTION=dmake ...@@ -99,11 +99,6 @@ BUILD_ACTION=dmake
OUT2INC += hyphen.h OUT2INC += hyphen.h
.ENDIF # "$(GUI)"=="WNT" .ENDIF # "$(GUI)"=="WNT"
.IF "$(GUI)"=="OS2"
BUILD_ACTION=dmake
OUT2INC += hyphen.h
.ENDIF # "$(GUI)"=="OS2"
.IF "$(CROSS_COMPILING)"!="" .IF "$(CROSS_COMPILING)"!=""
CONFIGURE_FLAGS+= --build="$(BUILD_PLATFORM)" --host="$(HOST_PLATFORM)" CONFIGURE_FLAGS+= --build="$(BUILD_PLATFORM)" --host="$(HOST_PLATFORM)"
.ENDIF .ENDIF
......
...@@ -84,9 +84,9 @@ OUT2LIB=$(BUILD_DIR)$/src$/.libs$/libtextcat*$(DLLPOST) ...@@ -84,9 +84,9 @@ OUT2LIB=$(BUILD_DIR)$/src$/.libs$/libtextcat*$(DLLPOST)
.ENDIF # "$(GUI)"=="UNX" .ENDIF # "$(GUI)"=="UNX"
.IF "$(GUI)"=="WNT" || "$(GUI)"=="OS2" .IF "$(GUI)"=="WNT"
BUILD_ACTION=cd src && dmake $(MAKEMACROS) BUILD_ACTION=cd src && dmake $(MAKEMACROS)
.ENDIF # "$(GUI)"=="WNT" || "$(GUI)"=="OS2" .ENDIF # "$(GUI)"=="WNT"
OUT2INC= \ OUT2INC= \
......
...@@ -33,23 +33,6 @@ ...@@ -33,23 +33,6 @@
+ $c $pic -s $inline -c -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd -I. $opts -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src + $c $pic -s $inline -c -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd -I. $opts -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src
+ $c -shared $ldflags -o ${soprefix}lpsolve55.$so `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'` $libs + $c -shared $ldflags -o ${soprefix}lpsolve55.$so `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'` $libs
fi fi
--- misc/lp_solve_5.5/lpsolve55/ccc.os2 2008-11-26 12:49:36.000000000 +0100
+++ misc/build/lp_solve_5.5/lpsolve55/ccc.os2 2008-09-25 17:27:48.000000000 +0200
@@ -1 +1,13 @@
-dummy
+src='../lp_MDO.c ../shared/commonlib.c ../shared/mmio.c ../shared/myblas.c ../ini.c ../fortify.c ../colamd/colamd.c ../lp_rlp.c ../lp_crash.c ../bfp/bfp_LUSOL/lp_LUSOL.c ../bfp/bfp_LUSOL/LUSOL/lusol.c ../lp_Hash.c ../lp_lib.c ../lp_wlp.c ../lp_matrix.c ../lp_mipbb.c ../lp_MPS.c ../lp_params.c ../lp_presolve.c ../lp_price.c ../lp_pricePSE.c ../lp_report.c ../lp_scale.c ../lp_simplex.c ../lp_SOS.c ../lp_utils.c ../yacc_read.c'
+c=$CC
+
+def=
+so=
+
+opts='-O3'
+
+$c -s -c -Zomf -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd $opts $def -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src
+emxomfar rv liblpsolve55.lib `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'`
+echo liblpsolve55.a
+
+rm *.o 2>/dev/null
--- misc/lp_solve_5.5/lpsolve55/ccc.osx Thu Jun 23 22:53:08 2005 --- misc/lp_solve_5.5/lpsolve55/ccc.osx Thu Jun 23 22:53:08 2005
+++ misc/build/lp_solve_5.5/lpsolve55/ccc.osx Wed May 21 17:19:56 2008 +++ misc/build/lp_solve_5.5/lpsolve55/ccc.osx Wed May 21 17:19:56 2008
@@ -1,8 +1,12 @@ @@ -1,8 +1,12 @@
......
...@@ -45,7 +45,7 @@ PATCH_FILES=lp_solve_5.5-windows.patch ...@@ -45,7 +45,7 @@ PATCH_FILES=lp_solve_5.5-windows.patch
PATCH_FILES=\ PATCH_FILES=\
lp_solve_5.5.patch \ lp_solve_5.5.patch \
lp_solve-aix.patch lp_solve-aix.patch
ADDITIONAL_FILES=lpsolve55$/ccc.solaris lpsolve55$/ccc.ios lpsolve55$/ccc.os2 ADDITIONAL_FILES=lpsolve55$/ccc.solaris lpsolve55$/ccc.ios
.ENDIF .ENDIF
.IF "$(OS)"=="OPENBSD" .IF "$(OS)"=="OPENBSD"
...@@ -76,9 +76,6 @@ BUILD_ACTION=cmd /c cvc6.bat ...@@ -76,9 +76,6 @@ BUILD_ACTION=cmd /c cvc6.bat
OUT2LIB=$(BUILD_DIR)$/lpsolve55.lib OUT2LIB=$(BUILD_DIR)$/lpsolve55.lib
.ENDIF .ENDIF
OUT2BIN=$(BUILD_DIR)$/lpsolve55.dll OUT2BIN=$(BUILD_DIR)$/lpsolve55.dll
.ELIF "$(GUI)"=="OS2"
BUILD_ACTION=sh ccc.os2
OUT2LIB=$(BUILD_DIR)$/liblpsolve55.lib
.ELSE .ELSE
.IF "$(OS)"=="MACOSX" .IF "$(OS)"=="MACOSX"
.EXPORT: EXTRA_CDEFS EXTRA_LINKFLAGS .EXPORT: EXTRA_CDEFS EXTRA_LINKFLAGS
......
...@@ -101,11 +101,6 @@ BUILD_ACTION=dmake ...@@ -101,11 +101,6 @@ BUILD_ACTION=dmake
OUT2INC += mythes.hxx OUT2INC += mythes.hxx
.ENDIF # "$(GUI)"=="WNT" .ENDIF # "$(GUI)"=="WNT"
.IF "$(GUI)"=="OS2"
BUILD_ACTION=dmake
OUT2INC += mythes.hxx
.ENDIF # "$(GUI)"=="OS2"
# --- Targets ------------------------------------------------------ # --- Targets ------------------------------------------------------
.INCLUDE : set_ext.mk .INCLUDE : set_ext.mk
......
...@@ -68,17 +68,7 @@ extern "C" { ...@@ -68,17 +68,7 @@ extern "C" {
/* DLL Entry modifiers... */ /* DLL Entry modifiers... */
/* PC */ /* PC */
#if defined(XP_OS2) #if defined(XP_PC) || defined(_WINDOWS) || defined(WIN32) || defined(_WIN32)
# ifdef XP_OS2_VACPP
# define JRI_PUBLIC_API(ResultType) ResultType _Optlink
# define JRI_PUBLIC_VAR(VarType) VarType
# define JRI_CALLBACK
# else
# define JRI_PUBLIC_API(ResultType) ResultType
# define JRI_PUBLIC_VAR(VarType) VarType
# define JRI_CALLBACK
# endif
#elif defined(XP_PC) || defined(_WINDOWS) || defined(WIN32) || defined(_WIN32)
# include <windows.h> # include <windows.h>
# if defined(_MSC_VER) || defined(__MINGW32__) # if defined(_MSC_VER) || defined(__MINGW32__)
# if defined(WIN32) || defined(_WIN32) # if defined(WIN32) || defined(_WIN32)
......
...@@ -41,7 +41,7 @@ JDKINCS= ...@@ -41,7 +41,7 @@ JDKINCS=
# --- Files -------------------------------------------------------- # --- Files --------------------------------------------------------
.IF "$(GUI)" == "WNT" || "$(GUI)" == "OS2" .IF "$(GUI)" == "WNT"
MOZFILES = $(SLO)$/npwin.obj MOZFILES = $(SLO)$/npwin.obj
.ELSE .ELSE
MOZFILES = $(SLO)$/npunix.obj MOZFILES = $(SLO)$/npunix.obj
......
...@@ -45,18 +45,8 @@ ...@@ -45,18 +45,8 @@
#ifndef _NPAPI_H_ #ifndef _NPAPI_H_
#define _NPAPI_H_ #define _NPAPI_H_
#ifdef __OS2__
#pragma pack(1)
#endif
#include "jri.h" /* Java Runtime Interface */ #include "jri.h" /* Java Runtime Interface */
#if defined (__OS2__ ) || defined (OS2)
# ifndef XP_OS2
# define XP_OS2 1
# endif /* XP_OS2 */
#endif /* __OS2__ */
#ifdef _WINDOWS #ifdef _WINDOWS
# ifndef XP_WIN # ifndef XP_WIN
# define XP_WIN 1 # define XP_WIN 1
...@@ -388,13 +378,6 @@ typedef struct _NPEvent ...@@ -388,13 +378,6 @@ typedef struct _NPEvent
uint32 wParam; uint32 wParam;
uint32 lParam; uint32 lParam;
} NPEvent; } NPEvent;
#elif defined(XP_OS2)
typedef struct _NPEvent
{
uint32 event;
uint32 wParam;
uint32 lParam;
} NPEvent;
#elif defined (XP_UNIX) && !defined(NO_X11) #elif defined (XP_UNIX) && !defined(NO_X11)
typedef XEvent NPEvent; typedef XEvent NPEvent;
#else #else
...@@ -521,12 +504,8 @@ enum NPEventType { ...@@ -521,12 +504,8 @@ enum NPEventType {
#if defined(_WINDOWS) && !defined(WIN32) #if defined(_WINDOWS) && !defined(WIN32)
#define NP_LOADDS _loadds #define NP_LOADDS _loadds
#else #else
#if defined(__OS2__)
#define NP_LOADDS _System
#else
#define NP_LOADDS #define NP_LOADDS
#endif #endif
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -603,8 +582,5 @@ void NP_LOADDS NPN_ForceRedraw(NPP instance); ...@@ -603,8 +582,5 @@ void NP_LOADDS NPN_ForceRedraw(NPP instance);
#endif #endif
#endif /* RC_INVOKED */ #endif /* RC_INVOKED */
#ifdef __OS2__
#pragma pack()
#endif
#endif /* _NPAPI_H_ */ #endif /* _NPAPI_H_ */
...@@ -46,10 +46,6 @@ ...@@ -46,10 +46,6 @@
#ifndef _NPUPP_H_ #ifndef _NPUPP_H_
#define _NPUPP_H_ #define _NPUPP_H_
#if defined(__OS2__)
#pragma pack(1)
#endif
#ifndef GENERATINGCFM #ifndef GENERATINGCFM
#define GENERATINGCFM 0 #define GENERATINGCFM 0
#endif #endif
...@@ -1223,35 +1219,16 @@ typedef OSErr (* NP_LOADDS BP_GetSupportedMIMETypesUPP)(BPSupportedMIMETypes*, U ...@@ -1223,35 +1219,16 @@ typedef OSErr (* NP_LOADDS BP_GetSupportedMIMETypesUPP)(BPSupportedMIMETypes*, U
#if defined(_WINDOWS) #if defined(_WINDOWS)
#define OSCALL WINAPI #define OSCALL WINAPI
#else #else
#if defined(__OS2__)
#define OSCALL _System
#else
#define OSCALL #define OSCALL
#endif #endif
#endif
#if defined( _WINDOWS ) || defined (__OS2__) #if defined( _WINDOWS )
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/* plugin meta member functions */ /* plugin meta member functions */
#if defined(__OS2__)
typedef struct _NPPluginData { /* Alternate OS2 Plugin interface */
char *pMimeTypes;
char *pFileExtents;
char *pFileOpenTemplate;
char *pProductName;
char *pProductDescription;
unsigned long dwProductVersionMS;
unsigned long dwProductVersionLS;
} NPPluginData;
NPError OSCALL NP_GetPluginData(NPPluginData * pPluginData);
#endif
NPError OSCALL NP_GetEntryPoints(NPPluginFuncs* pFuncs); NPError OSCALL NP_GetEntryPoints(NPPluginFuncs* pFuncs);
...@@ -1265,11 +1242,7 @@ char* NP_GetMIMEDescription(); ...@@ -1265,11 +1242,7 @@ char* NP_GetMIMEDescription();
} }
#endif #endif
#endif /* _WINDOWS || __OS2__ */ #endif /* _WINDOWS */
#if defined(__OS2__)
#pragma pack()
#endif
#ifdef XP_UNIX #ifdef XP_UNIX
......
...@@ -45,12 +45,6 @@ ...@@ -45,12 +45,6 @@
//\\// DEFINE //\\// DEFINE
#define NP_EXPORT #define NP_EXPORT
#ifdef OS2
#define WINAPI _System
#define HIBYTE(a) (a>>8)
#define LOBYTE(a) (a&0xFF)
#endif
//\\// GLOBAL DATA //\\// GLOBAL DATA
NPNetscapeFuncs* g_pNavigatorFuncs = 0; NPNetscapeFuncs* g_pNavigatorFuncs = 0;
......
...@@ -67,10 +67,7 @@ OOO_PATCH_FILES += \ ...@@ -67,10 +67,7 @@ OOO_PATCH_FILES += \
PATCH_FILES=$(OOO_PATCH_FILES) PATCH_FILES=$(OOO_PATCH_FILES)
.IF "$(OS)"=="OS2" .IF "$(OS)"=="WNT"
BUILD_ACTION=dmake
BUILD_DIR=$(CONFIGURE_DIR)$/src
.ELIF "$(OS)"=="WNT"
.IF "$(COM)"=="GCC" .IF "$(COM)"=="GCC"
OOO_PATCH_FILES+=$(TARFILE_NAME).patch.mingw OOO_PATCH_FILES+=$(TARFILE_NAME).patch.mingw
raptor_CC=$(CC) -mthreads raptor_CC=$(CC) -mthreads
...@@ -171,8 +168,6 @@ OUT2BIN+=src/raptor-config ...@@ -171,8 +168,6 @@ OUT2BIN+=src/raptor-config
.ELSE .ELSE
# if we use dmake, this is done automagically # if we use dmake, this is done automagically
.ENDIF .ENDIF
.ELIF "$(GUI)"=="OS2"
# if we use dmake, this is done automagically
.ELSE .ELSE
OUT2LIB+=src$/.libs$/libraptor.so.$(RAPTOR_MAJOR) src$/.libs$/libraptor.so OUT2LIB+=src$/.libs$/libraptor.so.$(RAPTOR_MAJOR) src$/.libs$/libraptor.so
OUT2BIN+=src/raptor-config OUT2BIN+=src/raptor-config
......
...@@ -62,10 +62,7 @@ OOO_PATCH_FILES= \ ...@@ -62,10 +62,7 @@ OOO_PATCH_FILES= \
PATCH_FILES=$(OOO_PATCH_FILES) PATCH_FILES=$(OOO_PATCH_FILES)
.IF "$(OS)"=="OS2" .IF "$(OS)"=="WNT"
BUILD_ACTION=dmake
BUILD_DIR=$(CONFIGURE_DIR)$/src
.ELIF "$(OS)"=="WNT"
.IF "$(COM)"=="GCC" .IF "$(COM)"=="GCC"
rasqal_CC=$(CC) -mthreads rasqal_CC=$(CC) -mthreads
.IF "$(MINGW_SHARED_GCCLIB)"=="YES" .IF "$(MINGW_SHARED_GCCLIB)"=="YES"
...@@ -158,8 +155,6 @@ OUT2BIN+=src/rasqal-config ...@@ -158,8 +155,6 @@ OUT2BIN+=src/rasqal-config
.ELSE .ELSE
# if we use dmake, this is done automagically # if we use dmake, this is done automagically
.ENDIF .ENDIF
.ELIF "$(OS)"=="OS2"
# if we use dmake, this is done automagically
.ELSE .ELSE
OUT2LIB+=src$/.libs$/librasqal.so.$(RASQAL_MAJOR) src$/.libs$/librasqal.so OUT2LIB+=src$/.libs$/librasqal.so.$(RASQAL_MAJOR) src$/.libs$/librasqal.so
OUT2BIN+=src/rasqal-config OUT2BIN+=src/rasqal-config
......
...@@ -62,10 +62,7 @@ OOO_PATCH_FILES= \ ...@@ -62,10 +62,7 @@ OOO_PATCH_FILES= \
PATCH_FILES=$(OOO_PATCH_FILES) \ PATCH_FILES=$(OOO_PATCH_FILES) \
.IF "$(OS)"=="OS2" .IF "$(OS)"=="WNT"
BUILD_ACTION=dmake
BUILD_DIR=$(CONFIGURE_DIR)$/librdf
.ELIF "$(OS)"=="WNT"
.IF "$(COM)"=="GCC" .IF "$(COM)"=="GCC"
redland_CC=$(CC) -mthreads redland_CC=$(CC) -mthreads
.IF "$(MINGW_SHARED_GCCLIB)"=="YES" .IF "$(MINGW_SHARED_GCCLIB)"=="YES"
...@@ -159,8 +156,6 @@ OUT2BIN+=librdf$/.libs$/*.dll ...@@ -159,8 +156,6 @@ OUT2BIN+=librdf$/.libs$/*.dll
.ELSE .ELSE
# if we use dmake, this is done automagically # if we use dmake, this is done automagically
.ENDIF .ENDIF
.ELIF "$(OS)"=="OS2"
# if we use dmake, this is done automagically
.ELSE .ELSE
OUT2LIB+=librdf$/.libs$/librdf.so.$(REDLAND_MAJOR) OUT2LIB+=librdf$/.libs$/librdf.so.$(REDLAND_MAJOR)
.ENDIF .ENDIF
......
...@@ -75,11 +75,7 @@ extern "C" { ...@@ -75,11 +75,7 @@ extern "C" {
#define FAR #define FAR
#define CALLBACK #define CALLBACK
#ifdef __OS2__
#define SQL_API _System
#else
#define SQL_API #define SQL_API
#endif
#define BOOL int #define BOOL int
typedef void* HWND; typedef void* HWND;
typedef char CHAR; typedef char CHAR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment