1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
# pstotxtv.mak
# Makefile for pstotxt[3a].dll, for use with GSview,
# Microsoft Visual C++ and Win32 Intel x86 or DEC Alpha.
# Has not been tested with DEC Alpha
# makefile created by
# Russell Lang, 1998-10-09
# Edit VCVER and DEVBASE as required
VCVER=5
DEVBASE = c:\devstudio
# Debugging
DEBUG=1
!if $(DEBUG)
DEBUGLINK=/DEBUG
CDEBUG=/Zi
!endif
# For Intel x386 use pstotxt3
DEST=pstotxt3
CFLAGS=/D__WIN32__
# For Alpha, uncomment the following two lines
#DEST=pstotxta
#CFLAGS=/D__WIN32__ /DDECALPHA
!if $(VCVER) <= 5
COMPBASE = $(DEVBASE)\vc
!else
COMPBASE = $(DEVBASE)\vc98
!endif
COMPDIR = $(COMPBASE)\bin
INCDIR = $(COMPBASE)\include
LIBDIR = $(COMPBASE)\lib
!if $(VCVER) <= 5
RCOMP=$(DEVBASE)\sharedide\bin\rc -D_MSC_VER $(CFLAGS)
!else
RCOMP=$(DEVBASE)\common\msdev98\bin\rc -D_MSC_VER $(CFLAGS)
!endif
CC=$(COMPDIR)\cl -DNEED_PROTO $(CFLAGS) $(CDEBUG) /I$(INCDIR)
CCAUX=$(CC)
all: $(DEST).dll $(DEST).exe
.c.obj:
$(CC) -c $*.c
ocr.h: ocr.ps mkrch.exe
mkrch $*.ps $*.h 1
rot270.h: rot270.ps mkrch.exe
mkrch $*.ps $*.h 2
rot90.h: rot90.ps mkrch.exe
mkrch $*.ps $*.h 3
mkrch.exe: mkrch.c
$(CCAUX) $*.c
$(DEST).obj: ptotdll.c ptotdll.h
$(CC) /c /D_Windows /D__DLL__ /Fo$(DEST).obj ptotdll.c
$(DEST).rc: ocr.h rot270.h rot90.h
copy ocr.h+rot270.h+rot90.h $(DEST).rc
$(DEST).res: pstotxt3.rc
$(RCOMP) -i$(INCDIR) -r $(DEST).rc
$(DEST).dll: $(DEST).obj $(DEST).res
$(COMPDIR)\link $(DEBUGLINK) /DLL /DEF:pstotxt3.def /OUT:$(DEST).dll $(DEST).obj $(DEST).res
$(DEST).exe: pstotxtd.c
$(CC) /D_Windows /Fe$(DEST).exe pstotxtd.c /link $(DEBUGLINK)
prezip: all
copy $(DEST).dll ..\$(DEST).dll
copy $(DEST).exe ..\$(DEST).exe
copy pstotext.txt ..\pstotext.txt
clean:
-del pstotxtd.exe
-del $(DEST).exe
-del $(DEST).dll
-del $(DEST).res
-del $(DEST).rc
-del $(DEST).exp
-del $(DEST).ilk
-del $(DEST).lib
-del $(DEST).pdb
-del *.obj
-del ocr.h
-del rot270.h
-del rot90.h
-del mkrch.exe
-del mkrch.ilk
-del mkrch.pdb
|