Changeset 654


Ignore:
Timestamp:
Jun 14, 2013, 11:37:54 AM (12 years ago)
Author:
Silvan Scherrer
Message:

ghostscript: applied Pauls changes and some adjustments

Location:
ghostscript/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified ghostscript/trunk/base/gdevos2p.c

    r651 r654  
    3939#define INCL_SPLDOSPRINT
    4040#define INCL_SPLERRORS
     41#define INCL_WINERRORS
    4142
    4243#include <os2.h>
     
    4748#include "gscdefs.h"            /* for gs_product */
    4849
    49 extern HWND hwndtext;           /* in gp_os2.h */
     50HWND hwndtext;
    5051
    5152typedef struct tagOS2QL {
  • TabularUnified ghostscript/trunk/base/gp_os2.c

    r651 r654  
    3434#define pclose fclose           /* doesn't support pclose */
    3535#else
     36#ifndef __KLIBC__
    3637#include <dos.h>
     38#endif
    3739#endif
    3840/* Define the regs union tag for short registers. */
     
    137139gp_file_is_console(FILE * f)
    138140{
    139 #ifndef __DLL__
     141#if !defined(__DLL__) && !defined(__KLIBC__)
    140142    if (!isos2) {
    141143        union REGS regs;
     
    261263{
    262264#ifndef __IBMC__
     265#if defined(__KLIBC__)
     266    setmode(prnfno, binary ? O_BINARY : O_TEXT);
     267#else
    263268    union REGS regs;
    264269
     
    277282    regs.h.al = 1;              /* set device info */
    278283    intdos(&regs, &regs);
     284#endif
    279285#endif
    280286}
  • TabularUnified ghostscript/trunk/base/gs.mak

    r651 r654  
    375375 $(DEVICE_DEVS14) $(DEVICE_DEVS15) $(DEVICE_DEVS16) $(DEVICE_DEVS17) \
    376376 $(DEVICE_DEVS18) $(DEVICE_DEVS19) $(DEVICE_DEVS20) $(DEVICE_DEVS21) \
     377 $(DEVICE_DEVS22) $(DEVICE_DEVS23) $(DEVICE_DEVS24) $(DEVICE_DEVS25) \
     378 $(DEVICE_DEVS26) $(DEVICE_DEVS27) $(DEVICE_DEVS28) $(DEVICE_DEVS29) \
     379 $(DEVICE_DEVS30) \
    377380 $(DEVICE_DEVS_EXTRA) $(GLD)romfs$(COMPILE_INITS).dev
    378381
     
    404407        $(EXP)$(ECHOGS_XE) -a $(devs_tr) -+ $(DEVICE_DEVS20)
    405408        $(EXP)$(ECHOGS_XE) -a $(devs_tr) -+ $(DEVICE_DEVS21)
     409        $(EXP)$(ECHOGS_XE) -a $(devs_tr) -+ $(DEVICE_DEVS22)
     410        $(EXP)$(ECHOGS_XE) -a $(devs_tr) -+ $(DEVICE_DEVS23)
     411        $(EXP)$(ECHOGS_XE) -a $(devs_tr) -+ $(DEVICE_DEVS24)
     412        $(EXP)$(ECHOGS_XE) -a $(devs_tr) -+ $(DEVICE_DEVS25)
     413        $(EXP)$(ECHOGS_XE) -a $(devs_tr) -+ $(DEVICE_DEVS26)
     414        $(EXP)$(ECHOGS_XE) -a $(devs_tr) -+ $(DEVICE_DEVS27)
     415        $(EXP)$(ECHOGS_XE) -a $(devs_tr) -+ $(DEVICE_DEVS28)
     416        $(EXP)$(ECHOGS_XE) -a $(devs_tr) -+ $(DEVICE_DEVS29)
     417        $(EXP)$(ECHOGS_XE) -a $(devs_tr) -+ $(DEVICE_DEVS30)
    406418        $(EXP)$(ECHOGS_XE) -a $(devs_tr) -+ $(DEVICE_DEVS_EXTRA)
    407419        $(EXP)$(ECHOGS_XE) -a $(devs_tr) -+ $(GLD)romfs$(COMPILE_INITS).dev
  • TabularUnified ghostscript/trunk/base/lib.mak

    r651 r654  
    3939# Define the name of this makefile.
    4040LIB_MAK=$(GLSRC)lib.mak
     41JBIG2_LIB=jbig2dec
     42
    4143
    4244# Define the inter-dependencies of the .h files.
  • TabularUnified ghostscript/trunk/jbig2dec/os_types.h

    r651 r654  
    4343#endif
    4444
    45 #if defined(HAVE_STDINT_H) || defined(__MACOS__)
     45#if defined(HAVE_STDINT_H) || defined(__MACOS__) || defined(__KLIBC__)
    4646# include <stdint.h>
    4747#elif defined(__VMS)
  • TabularUnified ghostscript/trunk/psi/dpmain.c

    r651 r654  
    8080gs_addmess(char *str)
    8181{
     82#if defined(__EMX__)
     83    fputs(str, stderr);
     84    fflush(stderr);
     85#else
    8286    fputs(str, stdout);
    8387    fflush(stdout);
     88#endif
    8489}
    8590
     
    99104        return TRUE;
    100105    rc = DosFreeModule(gsdll.hmodule);
     106    if (rc == 12) rc = 0; //we ignore rc == 12 (ERROR_INVALID_ACCESS)
     107
    101108    if (rc) {
    102109        sprintf(buf, "DosFreeModule returns %d\n", rc);
  • TabularUnified ghostscript/trunk/psi/gsdll2.def

    r651 r654  
    33DATA MULTIPLE NONSHARED
    44EXPORTS
    5    gsapi_revision
    6    gsapi_new_instance
    7    gsapi_delete_instance
    8    gsapi_init_with_args
    9    gsapi_run_string_begin
    10    gsapi_run_string_continue
    11    gsapi_run_string_end
    12    gsapi_run_string_with_length
    13    gsapi_run_string
    14    gsapi_run_file
    15    gsapi_exit
    16    gsapi_set_stdio
    17    gsapi_set_poll
    18    gsapi_set_display_callback
     5   GSDLL_REVISION = _gsdll_revision     @1
     6   GSDLL_INIT = _gsdll_init             @2
     7   GSDLL_EXECUTE_BEGIN = _gsdll_execute_begin   @3
     8   GSDLL_EXECUTE_CONT = _gsdll_execute_cont     @4
     9   GSDLL_EXECUTE_END = _gsdll_execute_end       @5
     10   GSDLL_EXIT = _gsdll_exit             @6
     11   GSAPI_REVISION = _gsapi_revision
     12   GSAPI_NEW_INSTANCE = _gsapi_new_instance
     13   GSAPI_DELETE_INSTANCE = _gsapi_delete_instance
     14   GSAPI_INIT_WITH_ARGS = _gsapi_init_with_args
     15   GSAPI_RUN_STRING_BEGIN = _gsapi_run_string_begin
     16   GSAPI_RUN_STRING_CONTINUE = _gsapi_run_string_continue
     17   GSAPI_RUN_STRING_END = _gsapi_run_string_end
     18   GSAPI_RUN_STRING_WITH_LENGTH = _gsapi_run_string_with_length
     19   GSAPI_RUN_STRING = _gsapi_run_string
     20   GSAPI_RUN_FILE = _gsapi_run_file
     21   GSAPI_EXIT = _gsapi_exit
     22   GSAPI_SET_STDIO = _gsapi_set_stdio
     23   GSAPI_SET_POLL = _gsapi_set_poll
     24   GSAPI_SET_DISPLAY_CALLBACK = _gsapi_set_display_callback
  • TabularUnified ghostscript/trunk/psi/os2.mak

    r651 r654  
    3737PSGENDIR=obj
    3838PSOBJDIR=obj
     39ADDONSDIR=addons
     40CONTRIBDIR=contrib
    3941
    4042# Define the root directory for Ghostscript installation.
     
    139141# See ijs.mak for more information.
    140142
    141 #IJSSRCDIR=ijs
    142 #IJSEXECTYPE=win
     143IJSSRCDIR=ijs
     144IJSEXECTYPE=unix
    143145
    144146# Define the directory where the imdi library source is stored.
     
    182184!if $(EMX)
    183185COMP=gcc $(X11INCLUDE)
    184 COMPBASE=\emx
    185 EMXPATH=/emx
    186 COMPDIR=$(COMPBASE)\bin
    187 INCDIR=$(EMXPATH)/include
    188 LIBDIR=$(EMXPATH)/lib
     186CC_SHARED=gcc
     187#COMPBASE=\emx
     188#EMXPATH=/emx
     189#COMPDIR=$(COMPBASE)\bin
     190#INCDIR=$(EMXPATH)/include
     191#LIBDIR=$(EMXPATH)/lib
    189192CPNG=-DPNGAPI=
    190193!endif
     
    208211
    209212# EMX requires 386 or higher
    210 CPU_TYPE=386
     213CPU_TYPE=586
    211214
    212215# Define the .dev module that implements thread and synchronization
     
    220223# Note that built-in libpng and zlib aren't available.
    221224
    222 SHARE_JPEG=0
    223 SHARE_LIBPNG=0
    224 SHARE_ZLIB=0
     225SHARE_JPEG=1
     226SHARE_LIBPNG=1
     227SHARE_ZLIB=1
    225228SHARE_JBIG2=0
     229SHARE_LIBTIFF=1
    226230
    227231# Swapping `make' out of memory makes linking much faster.
     
    249253#Compiler Optimiser option
    250254!if $(EMX)
    251 CO=-O
     255CO=-O2
    252256!endif
    253257!if $(IBMCPP)
     
    280284_I=
    281285O_=-o $(NULL)
    282 !if $(MAKEDLL)
    283 OBJ=obj
    284 !else
    285286OBJ=o
    286 !endif
    287287Q=
    288288XE=.exe
     
    309309
    310310!if $(MAKEDLL)
    311 CONFILES=-p %%s+
     311CONFILES=-p %%s
    312312!else
    313313CONFILES=
     
    359359!if $(MAKEDLL)
    360360!if $(EMX)
    361 CDLL=-Zdll -Zso -Zsys -Zomf $(MT_OPT) -D__DLL__
     361CDLL=-Zomf $(MT_OPT) -D__DLL__
    362362!endif
    363363!if $(IBMCPP)
     
    369369
    370370!if $(EMX)
    371 CEXE=-Zomf
    372 CEXESYS=-Zomf -Zsys
    373 !endif
    374 
    375 GENOPT=$(CD) $(CGDB) $(CDLL) $(CO) $(CPNG)
    376 
    377 CCFLAGS0=$(GENOPT) $(PLATOPT) -D__OS2__ $(GCIFLAGS)
     371CEXE=-Zexe
     372CEXESYS=-Zomf -Zmap
     373!endif
     374
     375GENOPT=$(CD) $(CGDB) $(CO) $(CPNG)
     376
     377CCFLAGS0=$(GENOPT) $(PLATOPT) -D__OS2__ $(GCIFLAGS) -I/cups/include
    378378CCFLAGS=$(CCFLAGS0)
    379 CC=$(COMPDIR)\$(COMP) $(CCFLAGS0)
     379CC=$(COMP) $(CCFLAGS0)
    380380CC_=$(CC)
    381381CC_D=$(CC) $(CO)
     
    389389# Since we have a large address space, we include some optional features.
    390390
    391 FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)epsf.dev $(PSD)os2print.dev
     391FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)epsf.dev $(PSD)os2print.dev $(PSD)jbig2.dev
    392392
    393393# Choose whether to compile the .ps initialization files into the executable.
     
    441441DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev $(DD)jpegcmyk.dev
    442442DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)pswrite.dev $(DD)ps2write.dev $(DD)epswrite.dev $(DD)txtwrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev
    443 DEVICE_DEVS16=$(DD)bbox.dev
     443DEVICE_DEVS16=$(DD)bbox.dev $(DD)cups.dev
    444444# Overflow for DEVS3,4,5,6,9
    445445DEVICE_DEVS17=$(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev
     
    447447DEVICE_DEVS19=$(DD)lbp8.dev $(DD)m8510.dev $(DD)necp6.dev $(DD)bjc600.dev $(DD)bjc800.dev
    448448DEVICE_DEVS20=$(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)pamcmyk32.dev
    449 DEVICE_DEVS21= $(DD)spotcmyk.dev $(DD)devicen.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)bmp16m.dev $(DD)bmp32b.dev $(DD)psdcmyk.dev $(DD)psdrgb.dev
     449DEVICE_DEVS21=$(DD)spotcmyk.dev $(DD)devicen.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)bmp16m.dev $(DD)bmp32b.dev $(DD)psdcmyk.dev $(DD)psdrgb.dev
     450# eplaser-jp devices
     451DEVICE_DEVS22=$(DD)eps9high.dev $(DD)eps9mid.dev $(DD)epson.dev $(DD)epsonc.dev $(DD)escp.dev $(DD)lp8000.dev $(DD)lq850.dev
     452DEVICE_DEVS23=$(DD)photoex.dev $(DD)st800.dev $(DD)stcolor.dev $(DD)alc1900.dev $(DD)alc2000.dev $(DD)alc4000.dev $(DD)alc4100.dev
     453DEVICE_DEVS24=$(DD)alc8500.dev $(DD)alc8600.dev $(DD)alc9100.dev $(DD)lp3000c.dev $(DD)lp8000c.dev $(DD)lp8200c.dev $(DD)lp8300c.dev
     454DEVICE_DEVS25=$(DD)lp8500c.dev $(DD)lp8800c.dev $(DD)lp9000c.dev $(DD)lp9200c.dev $(DD)lp9500c.dev $(DD)lp9800c.dev $(DD)lps6500.dev
     455DEVICE_DEVS26=$(DD)epl2050.dev $(DD)epl2050p.dev $(DD)epl2120.dev $(DD)epl2500.dev $(DD)epl2750.dev $(DD)epl5800.dev $(DD)epl5900.dev
     456DEVICE_DEVS27=$(DD)epl6100.dev $(DD)epl6200.dev $(DD)lp1800.dev $(DD)lp1900.dev $(DD)lp2200.dev $(DD)lp2400.dev $(DD)lp2500.dev
     457DEVICE_DEVS28=$(DD)lp7500.dev $(DD)lp7700.dev $(DD)lp7900.dev $(DD)lp8100.dev $(DD)lp8300f.dev $(DD)lp8400f.dev $(DD)lp8600.dev
     458DEVICE_DEVS29=$(DD)lp8600f.dev $(DD)lp8700.dev $(DD)lp8900.dev $(DD)lp9000b.dev $(DD)lp9100.dev $(DD)lp9200b.dev $(DD)lp9300.dev
     459DEVICE_DEVS30=$(DD)lp9400.dev $(DD)lp9600.dev $(DD)lp9600s.dev $(DD)lps4500.dev $(DD)eplcolor.dev $(DD)eplmono.dev
    450460
    451461# Include the generic makefiles.
     
    461471!include "$(GLSRCDIR)\jbig2.mak"
    462472!include "$(GLSRCDIR)\icclib.mak"
     473!include "$(GLSRCDIR)\ijs.mak"
    463474!include "$(GLSRCDIR)\devs.mak"
     475!include "$(GLSRCDIR)\libtiff.mak"
    464476!include "$(GLSRCDIR)\pcwin.mak"
    465477!include "$(GLSRCDIR)\contrib.mak"
     478!include "contrib\contrib.mak"
    466479!include "$(PSSRCDIR)\int.mak"
     480!include "cups/cups.mak"
    467481
    468482# -------------------------------- Library -------------------------------- #
     
    508522#CCAUX=$(COMPDIR)\$(COMP) $(CO)
    509523# emx 0.9d (gcc 2.8.1) crashes when compiling genarch.c with optimizer
    510 CCAUX=$(COMPDIR)\$(COMP)
     524CCAUX=$(COMP)
    511525
    512526$(ECHOGS_XE): $(GLSRCDIR)\echogs.c
    513527!if $(EMX)
    514         $(CCAUX) -o $(AUXGEN)echogs $(GLSRCDIR)\echogs.c
    515         $(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)echogs $(ECHOGS_XE)
    516         del $(AUXGEN)echogs
     528        $(CCAUX) -o $(AUXGEN)echogs$(XEAUX) $(GLSRCDIR)\echogs.c
     529#       $(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)echogs $(ECHOGS_XE)
     530#       del $(AUXGEN)echogs
    517531!endif
    518532!if $(IBMCPP)
     
    524538        -mkdir $(BINDIR)
    525539!if $(EMX)
    526         $(CCAUX) -DHAVE_LONG_LONG -o $(AUXGEN)genarch $(GLSRCDIR)\genarch.c
    527         $(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)genarch $(GENARCH_XE)
    528         del $(AUXGEN)genarch
     540        $(CCAUX) -DHAVE_LONG_LONG -Zomf -o $(AUXGEN)genarch$(XEAUX) $(GLSRCDIR)\genarch.c
     541#       $(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)genarch $(GENARCH_XE)
     542#       del $(AUXGEN)genarch
    529543!endif
    530544!if $(IBMCPP)
     
    534548$(GENCONF_XE): $(GLSRCDIR)\genconf.c $(GENCONF_DEPS)
    535549!if $(EMX)
    536         $(CCAUX) -o $(AUXGEN)genconf $(GLSRCDIR)\genconf.c
    537         $(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)genconf $(GENCONF_XE)
    538         del $(AUXGEN)genconf
     550        $(CCAUX) -o $(AUXGEN)genconf$(XEAUX) $(GLSRCDIR)\genconf.c
     551#       $(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)genconf $(GENCONF_XE)
     552#       del $(AUXGEN)genconf
    539553!endif
    540554!if $(IBMCPP)
     
    544558$(GENDEV_XE): $(GLSRCDIR)\gendev.c $(GENDEV_DEPS)
    545559!if $(EMX)
    546         $(CCAUX) -o $(AUXGEN)gendev $(GLSRCDIR)\gendev.c
    547         $(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)gendev $(GENDEV_XE)
    548         del $(AUXGEN)gendev
     560        $(CCAUX) -o $(AUXGEN)gendev$(XEAUX) $(GLSRCDIR)\gendev.c
     561#       $(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)gendev $(GENDEV_XE)
     562#       del $(AUXGEN)gendev
    549563!endif
    550564!if $(IBMCPP)
     
    554568$(GENHT_XE): $(PSSRC)genht.c $(GENHT_DEPS)
    555569!if $(EMX)
    556         $(CCAUX) -o $(AUXGEN)genht $(GENHT_CFLAGS) $(PSSRC)genht.c
    557         $(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)genht $(GENHT_XE)
    558         del $(AUXGEN)genht
     570        $(CCAUX) -o $(AUXGEN)genht$(XEAUX) $(GENHT_CFLAGS) $(PSSRC)genht.c
     571#       $(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)genht $(GENHT_XE)
     572#       del $(AUXGEN)genht
    559573!endif
    560574!if $(IBMCPP)
     
    564578$(GENINIT_XE): $(PSSRC)geninit.c $(GENINIT_DEPS)
    565579!if $(EMX)
    566         $(CCAUX) -o $(AUXGEN)geninit $(PSSRC)geninit.c
    567         $(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)geninit $(GENINIT_XE)
    568         del $(AUXGEN)geninit
     580        $(CCAUX) -o $(AUXGEN)geninit$(XEAUX) $(PSSRC)geninit.c
     581#       $(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)geninit $(GENINIT_XE)
     582#       del $(AUXGEN)geninit
    569583!endif
    570584!if $(IBMCPP)
     
    572586!endif
    573587
    574 MKROMFS_OBJS=$(MKROMFS_ZLIB_OBJS) $(GLOBJ)gscdefs.$(OBJ) $(GLOBJ)gpmisc.$(OBJ) $(GLOBJ)gp_getnv.obj $(GLOBJ)gp_os2fs.obj
     588MKROMFS_OBJS=$(MKROMFS_ZLIB_OBJS) $(GLOBJ)gscdefs.$(OBJ) $(GLOBJ)gsmisc.$(OBJ) \
     589 $(GLOBJ)gpmisc.$(OBJ) $(GLOBJ)gslibctx.$(OBJ) \
     590 $(GLOBJ)gp_getnv.$(OBJ) $(GLOBJ)gp_os2.$(OBJ) $(GLOBJ)gp_os2fs.$(OBJ) $(GLOBJ)gp_stdia.$(OBJ) \
     591 $(GLOBJ)gsutil.$(OBJ)
     592
    575593$(MKROMFS_XE): $(GLSRC)mkromfs.c $(MKROMFS_COMMON_DEPS) $(MKROMFS_OBJS)
    576594!if $(EMX)
     
    583601# No special gconfig_.h is needed.
    584602$(gconfig__h): $(TOP_MAKEFILES) $(ECHOGS_XE)
    585         $(ECHOGS_XE) -w $(gconfig__h) /* This file deliberately left blank. */
     603        $(ECHOGS_XE) -w $(gconfig__h) /* This file is created by os2.mak. */
     604        $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_SYS_TIME_H
     605        $(ECHOGS_XE) -a $(gconfig__h) -x 23 define HAVE_STDINT_H
    586606
    587607# ----------------------------- Main program ------------------------------ #
     608
     609gsdllos2_h=$(GLSRC)gsdllos2.h
    588610
    589611# Interpreter main program
     
    597619!if $(MAKEDLL)
    598620#making a DLL
    599 GS_ALL=$(INT_ALL) \
     621GS_ALL=$(PSOBJ)gsdll.$(OBJ) $(INT_ALL) \
    600622  $(LIB_ALL) $(LIBCTR) $(ld_tr) $(PSOBJ)$(GS).res $(ICONS) $(PSOBJ)gsromfs$(COMPILE_INITS).$(OBJ)
    601623
    602624$(GS_XE): $(BINDIR)\$(GSDLL).dll $(PSSRC)dpmain.c $(PSSRC)gsos2.rc $(GLOBJ)gscdefs.$(OBJ)
    603625!if $(EMX)
    604         $(COMPDIR)\$(COMP) $(CGDB) $(CO) -Zomf $(MT_OPT) -I$(PSSRCDIR) -I$(GLSRCDIR) -I$(PSOBJDIR) -I$(GLOBJDIR) -o$(GS_XE) $(PSSRC)dpmain.c $(GLOBJ)gscdefs.$(OBJ) $(PSSRC)gsos2.def
     626        $(CCAUX) $(CGDB) $(CO) -Zomf $(CDLL) $(MT_OPT) -I$(PSSRCDIR) -I$(GLSRCDIR) -I$(PSOBJDIR) -I$(GLOBJDIR) -o $(GS_XE) $(PSSRC)dpmain.c $(GLOBJ)gscdefs.$(OBJ) $(PSSRC)gsos2.def
    605627!endif
    606628!if $(IBMCPP)
    607629        $(CCAUX) -I$(PSSRCDIR) -I$(GLSRCDIR) -I$(PSOBJDIR) -I$(GLOBJDIR) /Fe$(GX_XE) $(PSSRC)dpmain.c $(GLOBJ)gscdefs.$(OBJ)
    608630!endif
    609         rc $(PSOBJ)$(GS).res $(GS_XE)
    610 
    611 $(BINDIR)\$(GSDLL).dll: $(GS_ALL) $(ALL_DEVS)
    612 !if $(EMX)
    613         LINK386 /DEBUG $(COMPBASE)\lib\dll0.obj $(COMPBASE)\lib\end.lib @$(ld_tr) $(PSOBJ)gsromfs$(COMPILE_INITS).$(OBJ), $(BINDIR)\$(GSDLL).dll, ,$(X11LIBS) $(COMPBASE)\lib\gcc.lib $(COMPBASE)\lib\st\c.lib $(COMPBASE)\lib\st\c_dllso.lib $(COMPBASE)\lib\st\sys.lib $(COMPBASE)\lib\c_alias.lib $(COMPBASE)\lib\os2.lib, $(PSSRC)gsdll2.def
     631        wrc $(PSOBJ)$(GS).res $(GS_XE)
     632
     633$(PSOBJ)gsdll.$(OBJ): $(PSSRC)gsdll.c $(gsdll_h) $(ghost_h) $(gscdefs_h)
     634        $(PSCC) $(PSO_)gsdll.$(OBJ) $(C_) $(PSSRC)gsdll.c
     635
     636$(BINDIR)\$(GSDLL).dll: $(GS_ALL) $(ALL_DEVS) $(PSOBJ)gsdll.$(OBJ)
     637!if $(EMX)
     638        gcc -Zdll -Zomf -Zmap -o $(BINDIR)\$(GSDLL).dll $(PSSRC)gsdll2.def $(PSOBJ)gsromfs$(COMPILE_INITS).$(OBJ) $(PSOBJ)gsdll.o @$(ld_tr) -ltiff -ljpeg -lpng -lz -lcups -lcupsimage -lpthread
    614639!endif
    615640!if $(IBMCPP)
     
    623648
    624649$(GS_XE): $(GS_ALL) $(ALL_DEVS)
    625         $(COMPDIR)\$(COMP) $(CGDB) I$(PSSRCDIR) -I$(GLSRCDIR) -o $(PSOBJ)$(GS) $(PSOBJ)gs.$(OBJ) @$(ld_tr) $(PSOBJ)gsromfs$(COMPILE_INITS).$(OBJ) -lm
    626         $(COMPDIR)\emxbind -r$(PSOBJ)$(GS).res $(COMPDIR)\emxl.exe $(PSOBJ)$(GS) $(GS_XE) -ac
    627         del $(PSOBJ)$(GS)
     650        $(CCAUX) $(CGDB) I$(PSSRCDIR) -I$(GLSRCDIR) -Zomf -Zbin-files -o $(PSOBJ)$(GS) $(PSOBJ)gs.$(OBJ) @$(ld_tr) $(PSOBJ)gsromfs$(COMPILE_INITS).$(OBJ) -lm
     651#       $(COMPDIR)\emxbind -r$(PSOBJ)$(GS).res $(COMPDIR)\emxl.exe $(PSOBJ)$(GS) $(GS_XE) -ac
     652#       del $(PSOBJ)$(GS)
    628653!endif
    629654
     
    637662
    638663$(PSOBJ)$(GS).res: $(PSSRC)$(GS).rc $(PSOBJ)gsos2.ico
    639         rc -i $(COMPBASE)\include -i $(PSSRCDIR) -i $(PSOBJDIR) -r $(PSSRC)$(GS).rc $(PSOBJ)$(GS).res
     664        wrc -i=$(PSSRCDIR);$(PSOBJDIR) -r $(PSSRC)$(GS).rc -fo=$(PSOBJ)$(GS).res
    640665
    641666
     
    643668
    644669$(GLOBJ)gspmdrv.o: $(GLSRC)gspmdrv.c $(GLSRC)gspmdrv.h
    645         $(COMPDIR)\$(COMP) $(CGDB) $(CO) -I$(GLSRCDIR) -o $(GLOBJ)gspmdrv.o -c $(GLSRC)gspmdrv.c
     670        $(CCAUX) $(CGDB) $(CO) -I$(GLSRCDIR) -o $(GLOBJ)gspmdrv.o -c $(GLSRC)gspmdrv.c
    646671
    647672$(GLOBJ)gspmdrv.res: $(GLSRC)gspmdrv.rc $(GLSRC)gspmdrv.h $(GLOBJ)gspmdrv.ico
    648         rc -i $(COMPBASE)\include -i $(GLSRCDIR) -i $(GLOBJDIR) -r $(GLSRC)gspmdrv.rc $(GLOBJ)gspmdrv.res
     673        wrc -i=$(GLSRCDIR);$(GLOBJDIR) -r $(GLSRC)gspmdrv.rc -fo=$(GLOBJ)gspmdrv.res
    649674
    650675$(BINDIR)\gspmdrv.exe: $(GLOBJ)gspmdrv.o $(GLOBJ)gspmdrv.res $(GLSRC)gspmdrv.def
    651         $(COMPDIR)\$(COMP) $(CGDB) $(CO) -o $(GLOBJ)gspmdrv $(GLOBJ)gspmdrv.o
    652         $(COMPDIR)\emxbind -p -r$(GLOBJ)gspmdrv.res -d$(GLSRC)gspmdrv.def $(COMPDIR)\emxl.exe $(GLOBJ)gspmdrv $(BINDIR)\gspmdrv.exe
    653         del $(GLOBJ)gspmdrv
     676        $(CCAUX) $(CGDB) $(CO) -o $(BINDIR)\gspmdrv.exe $(GLOBJ)gspmdrv.o
     677#       $(COMPDIR)\emxbind -p -r$(GLOBJ)gspmdrv.res -d$(GLSRC)gspmdrv.def $(COMPDIR)\emxl.exe $(GLOBJ)gspmdrv $(BINDIR)\gspmdrv.exe
     678#       del $(GLOBJ)gspmdrv
    654679
    655680# Create a ZIP archive
Note: See TracChangeset for help on using the changeset viewer.