1# Copyright (C) 2001-2006 Artifex Software, Inc. 2# All Rights Reserved. 3# 4# This software is provided AS-IS with no warranty, either express or 5# implied. 6# 7# This software is distributed under license and may not be copied, modified 8# or distributed except as expressly authorized under the terms of that 9# license. Refer to licensing information at http://www.artifex.com/ 10# or contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, 11# San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information. 12# 13# $Id: watclib.mak 9334 2009-01-08 09:17:18Z ghostgum $ 14# makefile for MS-DOS / Watcom C/C++ library testing. 15 16libdefault: $(GLOBJ)gslib.exe 17 $(NO_OP) 18 19AROOTDIR=c:/gs 20GSROOTDIR=$(AROOTDIR)/gs$(GS_DOT_VERSION) 21GS_DOCDIR=$(GSROOTDIR)/doc 22GS_LIB_DEFAULT=$(GSROOTDIR)/Resource/Init\;$(GSROOTDIR)/lib\;$(GSROOTDIR)/Resource/Font\;$(AROOTDIR)/fonts 23SEARCH_HERE_FIRST=1 24GS_INIT=gs_init.ps 25 26!ifndef DEBUG 27DEBUG=1 28!endif 29!ifndef TDEBUG 30TDEBUG=1 31!endif 32 33GS=gslib 34 35!ifndef BINDIR 36BINDIR=.\debugobj 37!endif 38!ifndef GLSRCDIR 39GLSRCDIR=.\base 40!endif 41!ifndef PSRESDIR 42PSRESDIR=.\Resource 43!endif 44!ifndef GLGENDIR 45GLGENDIR=.\debugobj 46!endif 47!ifndef GLOBJDIR 48GLOBJDIR=.\debugobj 49!endif 50 51# Do not edit the next group of lines. 52NUL= 53DD=$(GLGENDIR)\$(NUL) 54GLD=$(GLGENDIR)\$(NUL) 55 56!ifndef JSRCDIR 57JSRCDIR=jpeg 58!endif 59 60!ifndef PNGSRCDIR 61PNGSRCDIR=libpng 62!endif 63 64!ifndef ZSRCDIR 65ZSRCDIR=zlib 66!endif 67 68# Define the jbig2dec library and source location. 69# See jbig2.mak for more information. 70 71!ifndef JBIG2_LIB 72JBIG2_LIB=jbig2dec 73!endif 74 75!ifndef JBIG2SRCDIR 76JBIG2SRCDIR=jbig2dec 77!endif 78 79# Define the directory where the icclib source are stored. 80# See icclib.mak for more information 81 82!ifndef ICCSRCDIR 83ICCSRCDIR=icclib 84!endif 85 86# Define the directory where the ijs source is stored, 87# and the process forking method to use for the server. 88# See ijs.mak for more information. 89 90!ifndef IJSSRCDIR 91IJSSRCDIR=ijs 92IJSEXECTYPE=win 93!endif 94 95# Define the directory where the imdi library source is stored. 96# See devs.mak for more information 97 98!ifndef IMDISRCDIR 99IMDISRCDIR=imdi 100!endif 101 102CFLAGS= 103 104!ifndef WCVERSION 105WCVERSION=10.0 106!endif 107LIBPATHS=LIBPATH $(%WATCOM)\lib386 LIBPATH $(%WATCOM)\lib386\dos 108STUB=$(%WATCOM)\binb\wstub.exe 109 110!ifndef CPU_TYPE 111CPU_TYPE=386 112!endif 113 114!ifndef SYNC 115SYNC=winsync 116!endif 117 118PLATFORM=watclib_ 119MAKEFILE=$(GLSRCDIR)\watclib.mak 120TOP_MAKEFILES=$(MAKEFILE) $(GLSRCDIR)\wccommon.mak 121PLATOPT= 122 123!include $(GLSRCDIR)\wccommon.mak 124 125!ifndef FEATURE_DEVS 126FEATURE_DEVS=$(GLD)patlib.dev $(GLD)path1lib.dev 127!endif 128!ifndef DEVICE_DEVS 129DEVICE_DEVS=$(DD)vga.dev 130!endif 131 132!ifndef COMPILE_INITS 133COMPILE_INITS=0 134!endif 135!ifndef BAND_LIST_STORAGE 136BAND_LIST_STORAGE=file 137!endif 138!ifndef BAND_LIST_COMPRESSOR 139BAND_LIST_COMPRESSOR=zlib 140!endif 141!ifndef FILE_IMPLEMENTATION 142FILE_IMPLEMENTATION=stdio 143!endif 144!ifndef STDIO_IMPLEMENTATION 145STDIO_IMPLEMENTATION= 146!endif 147 148!include $(GLSRCDIR)\wctail.mak 149!include $(GLSRCDIR)\devs.mak 150!include $(GLSRCDIR)\contrib.mak 151 152GLCCWIN=$(GLCC) 153!include $(GLSRCDIR)\winplat.mak 154 155watclib_1=$(GLOBJ)gp_getnv.$(OBJ) $(GLOBJ)gp_paper.$(OBJ) $(GLOBJ)gp_iwatc.$(OBJ) 156!ifeq WAT32 0 157watclib_2=$(GLOBJ)gp_dosfs.$(OBJ) $(GLOBJ)gp_dosfe.$(OBJ) $(GLOBJ)gp_msdos.$(OBJ) 158watclib_inc= 159!else 160watclib_2= 161watclib_inc=$(GLD)winplat.dev 162!endif 163watclib__=$(watclib_1) $(watclib_2) 164$(GLGEN)watclib_.dev: $(watclib__) $(GLGEN)nosync.dev $(watclib_inc) 165 $(SETMOD) $(GLGEN)watclib_ $(watclib_1) 166 $(ADDMOD) $(GLGEN)watclib_ -obj $(watclib_2) 167 $(ADDMOD) $(GLGEN)watclib_ -include $(GLGEN)nosync $(watclib_inc) 168 169$(GLOBJ)gp_iwatc.$(OBJ): $(GLSRC)gp_iwatc.c $(stat__h) $(string__h)\ 170 $(gx_h) $(gp_h) $(gpmisc_h) 171 $(GLCC) $(GLO_)gp_iwatc.$(OBJ) $(C_) $(GLSRC)gp_iwatc.c 172 173BEGINFILES=*.err 174 175LIB_ONLY=$(GLOBJ)gslib.obj $(GLOBJ)gsnogc.obj $(GLOBJ)gconfig.obj $(GLOBJ)gscdefs.obj $(GLOBJ)gsromfs$(COMPILE_INITS).$(OBJ) 176ll_tr=ll.tr 177$(ll_tr): $(TOP_MAKEFILES) 178 echo OPTION STACK=64k >$(ll_tr) 179!ifeq WAT32 0 180 echo SYSTEM DOS4G >>$(ll_tr) 181 echo OPTION STUB=$(STUB) >>$(ll_tr) 182!endif 183 echo FILE $(GLOBJ)gsromfs$(COMPILE_INITS).$(OBJ) >>$(ll_tr) 184 echo FILE $(GLOBJ)gsnogc.obj >>$(ll_tr) 185 echo FILE $(GLOBJ)gconfig.obj >>$(ll_tr) 186 echo FILE $(GLOBJ)gscdefs.obj >>$(ll_tr) 187 188$(GLOBJ)gslib.exe: $(LIB_ALL) $(LIB_ONLY) $(ld_tr) $(ll_tr) 189 $(LINK) $(LCT) NAME gslib OPTION MAP=gslib FILE $(GLOBJ)gslib @$(ld_tr) @$(ll_tr) 190