⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.w16

📁 Programs in the irregular grid design package described in this manual are used to carry out five ma
💻 W16
📖 第 1 页 / 共 4 页
字号:
# note: there is a bug in this file: not all source files for gridit are
# rebuilt when master1.par is modified.


# MAKEFILE FOR ALL TRIGRID/WIN PROGRAMS
# MADE BY MERGING GRAPHICS AND TEXT MAKEFILES.
#
#############################################################################################
#
# FIRST GRAPHICS
#
#############################################################################################
# Makefile for TriGrid/Win
# maximum settings for some parameters described below.
#

.SUFFIXES: .rc .res .url .xxx .c .f .f .exe .obj .o32 .dat .bas .db .h .hpp .inc .def .ex$$ .inf .in$$ .par

# Use these for Windows 3.1 LARGE MODEL
LINK = link
#RCFLAGS = -k -m -30
RCFLAGS = -k 
MFCLIB = d:\c700\mfc\lib\lafxcw
CFLAGS = -AL -Gsw -Oils -Zp -W3 -FPi -IL:\inc

DEF = L:\lib\universl
DEF = ..\pigsrc\wpig\wpig.def
#
# two versions of LFLAGS
#
#this is fine for tv1msc.xxx
LFLAGS = /ALIGN:16/NOE

# adjust libs macros for mixed language programming
# for tv1mscf.xxx
#WINLIBS = oldnames llibcew libw llibfewc 
#FWINLIBS = oldnames llibcew llibfewc libw 

#Next one works for tv1mscf.xxx 
#agd 93/jul/18
CFLAGS = -AL -Gsw -Gt64 -Oils -Zp -W3 -FPi -Id:\c700\mfc\include -Id:\c700\include
CPPFLAGS = -AL -Gsw -Ge -Gt64 -Oils -Zp -W3 -FPi -Id:\c700\mfc\include -Id:\c700\include
#CPPFLAGS = -AL -Gsw -Ge -Gt64 -Od -Zp -W3 -FPi -Id:\c700\mfc\include -Id:\c700\include
#use same flags as are used to build the mfc library...PLUS /FPi

#CPPFLAGS = /AL /W3 /Zp /Oxt /GA /GEs /G2 /D_WINDOWS /Zi /FPi -Id:\c700\mfc\include -Id:\c700\inc
#CPPFLAGS = /AL /W3 /Zp /Oxt /GA /GEs /G2 /D_WINDOWS /FPi -Id:\c700\mfc\include -Id:\c700\inc


#next is best so far for tv1mscf.xxx
#LFLAGS = /ALIGN:16/NOD/NOE/SEG:8192/PACKC/PACKD

.c.obj:
	cd $(*D)
	cl -c @<< $(CFLAGS) $(*B).c
-DLIBDIR=d:\c700\LIB -DPROCESSOR=MSWINDOWS -DMSWINDOWS
<<NOKEEP
	cd $(MAKEDIR)

.cpp.obj:
	cd $(*D)
	cl -c @<< $(CPPFLAGS) $(*B).cpp
-DLIBDIR=d:\c700\LIB -DPROCESSOR=MSWINDOWS -DMSWINDOWS
<<NOKEEP
	cd $(MAKEDIR)

#.for.obj:
#        cd $(*D)
##           fl /c /AL /Ge /G2 /4Yd /4Yb /4I4 /FPi $(*B).for
##           fl /c /AL /Gt16384 /Ge /G2 /4Yd /4Yb /4I4 /FPi $(*B).for
#           fl /c /AL /Gt64 /Ge /G2 /4Yd /4Yb /4I4 /FPi $(*B).for
##           fl /c /AL /Gt128 /Ge /G2 /4Yd /4Yb /4I4 /FPi $(*B).for
##           fl /c /AL /Gt256 /Ge /G2 /4Yd /4Yb /4I4 /FPi $(*B).for
##           fl /c /AL /Gt256 /Ge /G2 /MW /4Yd /FPi $(*B).for    !requires YIELDQQ
##           fl /c /AL /G2 /4Yb /4Yd /FPi $*.for
#        cd $(MAKEDIR)

#.f.for:
#        cd $(*D)
#        copy $(*B).f $(*B).for
#        cd $(MAKEDIR)


.f.obj:
	cd $(*D)
	   fl /c /AL /Gt64 /Ge /G2 /4Yd /4Yb /4I4 /FPi /Tf$(*B).f
	cd $(MAKEDIR)

.url.rc:
	L:\bin\curl -r rcwin -IL:\inc $*.url

.rc.res:
	cd $(*D)
	rc -r $(*B).rc
#        rc -r -In:\inc $*.rc
	cd $(MAKEDIR)

.url.res:
	L:\bin\curl -r rcwin -IL:\inc $*.url
	rc -r -In:\inc $*.rc

.exe.ex$$:
#        c:\install.pro\utils\dpack $** $@
#        dpack $** $@
	archive /P:$@ $**

.inf.in$$:
#        c:\install.pro\utils\dpack $** $@
#        dpack $** $@
	archive /P:$@ $**


default: gdef txtest

text: txtest

dtext: txdist

dist: grdist txdist demodist

zipdist: dist zipfiles

gdef: tstamp editor test noder displot splitter sampler

splitterd: splitted

grdist: editord noderd displotd splitted samplerd install settings readme

#zipfiles: ..\dist\distn.exe

zipfiles: ..\dist\dist\disk1.exe ..\dist\dist\disk2.exe

PASSWORD=-s3857765388
# for student distributions, no password
# PASSWORD=
# for ftp site distributions, no password - now distributed as demo, requiring
# licencing for max number of nodes.
PASSWORD=

..\dist\dist\distn.exe: dist
	cd ..\dist\dist
	pkzip -apr! $(PASSWORD) ..\distn
	cd ..
	zip2exe distn
	del distn.zip
	cd $(MAKEDIR)

..\dist\dist\disk1.exe: \
          ..\DIST\DISK1\EDI3D.BIN \
          ..\DIST\DISK1\INSTALL.BIN \
          ..\DIST\DISK1\SETUP.EXE \
          ..\DIST\DISK1\TG1996.BMP \
          ..\DIST\DISK1\READINST.TXT \
          ..\DIST\DISK1\BIN \
          ..\DIST\DISK1\GRID.BMP \
          ..\DIST\DISK1\readme.txt \
          ..\DIST\DISK1\setup.inf \
          ..\DIST\DISK1\install.inf \
          ..\DIST\DISK1\BIN\editor.ex$$ \
          ..\DIST\DISK1\BIN\ICONS.DLL \
          ..\DIST\DISK1\BIN\noder.ex$$ \
          ..\DIST\DISK1\BIN\displot.ex$$ \
          ..\DIST\DISK1\BIN\splitter.ex$$ \
          ..\DIST\DISK1\BIN\sampler.ex$$
        mkdir ..\dist\dist
        cd ..\dist\disk1
        pkzip -apr! $(PASSWORD)  ..\dist\disk1 *.*
        cd ..\dist
	zip2exe disk1
#        disk1.exe -t $(PASSWORD)
        del disk1.zip
	cd $(MAKEDIR)

..\dist\dist\disk2.exe: \
          ..\DIST\DISK2\BINTEXT\oknode.ex$$ \
          ..\DIST\DISK2\BINTEXT\renumber.ex$$ \
          ..\DIST\DISK2\BINTEXT\DOSXMSF.EX$$ \
          ..\DIST\DISK2\BINTEXT\DOSXNT.38$$ \
          ..\DIST\DISK2\BINTEXT\okneigh.ex$$ \
          ..\DIST\DISK2\BINTEXT\gridit.ex$$ \
          ..\DIST\DISK2\BINTEXT\adc2tri.ex$$ \
          ..\DIST\DISK2\BINTEXT\tri2adc.ex$$ \
          ..\DIST\DISK2\BINTEXT\tristats.ex$$ \
          ..\DIST\DISK2\BINTEXT\shiftdig.ex$$ \
          ..\DIST\DISK2\BINTEXT\prejoin.ex$$ \
          ..\DIST\DISK2\BINTEXT\redep.ex$$ \
          ..\DIST\DISK2\DEMODATA\A2DCOL.CO$$ \
          ..\DIST\DISK2\DEMODATA\TUTOR.TX$$ \
          ..\DIST\DISK2\DEMODATA\BND.DI$$ \
          ..\DIST\DISK2\DEMODATA\CCWCOL.CO$$ \
          ..\DIST\DISK2\DEMODATA\CONT.DI$$ \
          ..\DIST\DISK2\DEMODATA\DCOL.CO$$ \
          ..\DIST\DISK2\DEMODATA\DEP.NG$$ \
          ..\DIST\DISK2\DEMODATA\DEP.NO$$ \
          ..\DIST\DISK2\DEMODATA\DEP.TR$$ \
          ..\DIST\DISK2\DEMODATA\ECOL.CO$$ \
          ..\DIST\DISK2\DEMODATA\G90COL.CO$$ \
          ..\DIST\DISK2\DEMODATA\MOD.NG$$ \
          ..\DIST\DISK2\DEMODATA\MOD.NO$$ \
          ..\DIST\DISK2\DEMODATA\MOD.TR$$ \
          ..\DIST\DISK2\DEMODATA\MOD1.NG$$ \
          ..\DIST\DISK2\DEMODATA\MOD1.NO$$ \
          ..\DIST\DISK2\DEMODATA\MOD1S.NG$$ \
          ..\DIST\DISK2\DEMODATA\MOD2.NG$$ \
          ..\DIST\DISK2\DEMODATA\MOD3.NG$$ \
          ..\DIST\DISK2\DEMODATA\REDEP.LO$$ \
          ..\DIST\DISK2\DEMODATA\SOUND.NO$$
        mkdir ..\dist\dist
        cd ..\dist\disk2
        pkzip -apr! $(PASSWORD)  ..\dist\disk2 *.*
        cd ..\dist
#        cd ..\dist\dist
#        pkzip -apr! $(PASSWORD)  ..\disk2 -xbin\*.* -xdemodata\*.* -x*.txt -x*.bmp -xsetup.exe -x*.inf
#        cd ..
	zip2exe disk2
#        disk2.exe -t $(PASSWORD)
        del disk2.zip
	cd $(MAKEDIR)

ziptest: ..\dist\disk1.exe ..\dist\disk2.exe
	cd ..\dist
	disk1.exe -t $(PASSWORD)
	disk2.exe -t $(PASSWORD)


readme: ..\dist\disk1\readme.txt

..\dist\disk1\readme.txt: ..\dist\install\readme.txt ..\dist\install\settings.txt
	copy ..\dist\install\readme.txt+..\dist\install\settings.txt ..\dist\disk1\readme.txt

install: ..\dist\disk1\install.inf

#..\dist\install\install2.in$$: ..\dist\install\install2.inf
#        dpack $** $@

..\dist\disk1\install.inf: ..\dist\install\install2.in$$
	copy $** $@

settings: ..\dist\install\settings.txt

..\dist\install\settings.txt : ..\src\includes\master1.par displot\vel3d.inc
	grep -oi "^[ \t]*PARAMETER.*MREC.*\=" ..\src\includes\master1.par > ..\dist\install\settings.txt
	grep -oi "^[ \t]*PARAMETER.*NBTOT.*\=" ..\src\includes\master1.par >> ..\dist\install\settings.txt
	grep -oi "^[ \t]*PARAMETER.*MAXNNB.*\=" ..\src\includes\master1.par >> ..\dist\install\settings.txt
	grep -oi "^[ \t]*PARAMETER.*NCOL.*\=" ..\src\includes\master1.par >> ..\dist\install\settings.txt
	grep -oi "^[ \t]*PARAMETER.*MAXNPV.*\=" displot\vel3d.inc >> ..\dist\install\settings.txt
	grep -o "parameter \(TSTAMP\=" ..\pigsrc\tstamp.dat >> ..\dist\install\settings.txt

editord: ..\dist\disk1\bin\editor.ex$$

noderd: ..\dist\disk1\bin\noder.ex$$

displotd: ..\dist\disk1\bin\displot.ex$$

splitted: ..\dist\disk1\bin\splitter.ex$$

samplerd: ..\dist\disk1\bin\sampler.ex$$

..\dist\disk1\bin\editor.ex$$: $(@F)
	move $** $@
        copy dummy.fil $(@F)
	touch $(@F)
	touch $@

..\dist\disk1\bin\noder.ex$$: $(@F)
	move $** $@
        copy dummy.fil $(@F)
	touch $(@F)
	touch $@

..\dist\disk1\bin\splitter.ex$$: $(@F)
	move $** $@
        copy dummy.fil $(@F)
	touch $(@F)
	touch $@

..\dist\disk1\bin\sampler.ex$$: $(@F)
	move $** $@
        copy dummy.fil $(@F)
	touch $(@F)
	touch $@

..\dist\disk1\bin\displot.ex$$: $(@F)
	move $** $@
        copy dummy.fil $(@F)
	touch $(@F)
	touch $@

#noder.ex$$: noder.exe
#
#splitter.ex$$: splitter.exe
#
#sampler.ex$$: sampler.exe
#
#displot.ex$$: displot.exe
#
tstamp: ..\pigsrc\tstamp.db

editor: tstamp editor.exe

test: tstamp test.exe

noder: tstamp noder.exe

displot: tstamp displot.exe

splitter: tstamp splitter.exe

sampler: tstamp sampler.exe

#default: testmfc.exe

#default: test.exe

#default: testfcfc.exe testcfc.exe

# adjust libs macros for mixed language programming 
# for tv1mscf.xxx
#WINLIBS = oldnames llibcew libw llibfewc 
FWINLIBS = commdlg oldnames llibcewf llibfewc libw 

#Next one works for tv1mscf.xxx 
#agd 93/jul/18
#CFLAGS = -AL -Gsw -Oils -Zp -W3 -FPi -I L:\inc -I d:\c700\include

#next is best so far for tv1mscf.xxx
LFLAGS = /ALIGN:16/NOD/NOE/SEG:512/ONERROR:NOEXE/PACKC/PACKD
#LFLAGS = /ALIGN:16/NOD/NOE/SEG:8192/ONERROR:NOEXE/PACKC/PACKD

.obj.xxx:
	$(LINK) $(LFLAGS) @<<
$(**: =+^
)
$@
nul
$(MFCLIB) +
$(FWINLIBS),
$(DEF)
<<NOKEEP

.xxx.exe:
	move $*.xxx $@
	rc $(RCFLAGS) ..\pigsrc\wpig\wpig.res $@
	copy dummy.xxx $*.xxx
	touch $*.xxx

..\pigsrc\wpig\wpig.res : ..\pigsrc\wpig\wpig.rc ..\pigsrc\wpig\wpig.h ..\pigsrc\wpig\wpig.dlg
	cd $(*D)
	rc -r wpig.rc
	cd $(MAKEDIR)

..\pigsrc\tstamp.db : ..\pigsrc\tstamp.bas

..\pigsrc\tstamp.bas : ..\pigsrc\tstamp.dat
	cd $(*D)
# note that tstamp.bas is never produced...forcing this to run for
# every make session...
	log F tstamp.dat TRIGRID/Wpig: Makefile.: nmake $(MAKEFLAGS)
#uncomment next line to prevent log always updating the files...
#...forcing new comment every time make is run
#        copy tstamp.dat tstamp.bas
	cd $(MAKEDIR)

..\pigsrc\wpig\tstamp.dat : ..\pigsrc\wpig\wpig.cpp ..\pigsrc\wpig\wpig.hpp ..\pigsrc\wpig\wpig.h ..\pigsrc\wpig\wpig.dlg ..\pigsrc\wpig\resource.h
	cd $(*D)
	log C tstamp.dat TRIGRID/Wpig: wpig changes: nmake $(MAKEFLAGS)
	cd $(MAKEDIR)

#testmfc.xxx : ..\pigsrc\wpig.obj
#
#testmfc.exe: testmfc.xxx testmfc.res
#       copy $*.xxx $@
#       rc $(RCFLAGS) $*.res $@

e:\hasp\winapi\c\haspmsc3.obj: 

e:\hasp\winapi\c\haspmsw3.obj:

\hasp\winapi\c\haspmsc3.obj: e:\hasp\winapi\c\haspmsc3.obj
        copy e:\hasp\winapi\c\haspmsc3.obj $@

\hasp\winapi\c\haspmsw3.obj: e:\hasp\winapi\c\haspmsw3.obj
        copy e:\hasp\winapi\c\haspmsw3.obj $@

test.xxx : ..\pigsrc\pig\test.obj \
	    ..\pigsrc\pig\pigid.obj \
	    ..\pigsrc\pig\testrhp.obj \
	    ..\pigsrc\pig\pigreg.obj \
	    ..\pigsrc\wpig\pig_menu.obj \
	    ..\pigsrc\pig\PIGPANEL.obj \
	    ..\pigsrc\utils\text.obj \
	    ..\pigsrc\utils\about.obj \
	    ..\pigsrc\wpig\WPIG.obj \
	    ..\pigsrc\wpig\PIG.obj \
	    ..\pigsrc\wpig\PIGlicen.obj \
	    ..\pigsrc\xpig\licence.obj \
            ..\pigsrc\wpig\pigplat.obj \
            ..\pigsrc\wpig\PIG1.obj \
            \hasp\winapi\c\haspmsc3.obj \
            \hasp\winapi\c\haspmsw3.obj
        $(LINK) $(LFLAGS) @<<
$(**: =+^
)
$@

$(MFCLIB) +
$(FWINLIBS),
$(DEF)
<<NOKEEP

test.exe : test.xxx ..\pigsrc\wpig\wpig.res
	copy $*.xxx $@
	rc $(RCFLAGS) ..\pigsrc\wpig\wpig.res $@

#ex.xxx : \
#       editor\CONTBND.obj \
#       ..\pigsrc\wpig\PIG_MENU.obj \
#       ..\pigsrc\pig\PIGPANEL.obj \
#       ..\pigsrc\wpig\WPIG.obj \
#       ..\pigsrc\wpig\PIG.obj \
#       ..\pigsrc\wpig\PIG1.obj
#       $(LINK) $(LFLAGS) @<<
#$(**: =+^
#)
#$@
#nul
#$(MFCLIB) +
#$(FWINLIBS),
#$(DEF)
#<<NOKEEP
#

editor.xxx :  \
	editor\INIT.obj \
	..\pigsrc\pig\pigid.obj \
	editor\maingr.obj \
	editor\CONTBND.obj \
	editor\CONFIG.obj \
	editor\CRITERIA.obj \
	editor\edpoly.obj \
	editor\GRID.obj \
	editor\INFO.obj \
	editor\NEWEDITS.obj \
	editor\NUP.obj \
	editor\PERMMARK.obj \
	editor\PICED1.obj \
	editor\PICED2.obj \
	editor\REFINE.obj \
	editor\RETRO.obj \
	editor\CHEDGES.obj \
	editor\SAVES.obj \
	editor\wrfile.obj \
	editor\TRHILITE.obj \
	editor\TRIPROP.obj \
	editor\TRISTORE.obj \
	editor\triinfo.obj \
	editor\VERTMARK.obj \
	editor\WINDOW.obj \
	editor\VALIDATE.obj \
	editor\scale.obj \
	..\src\lib\utmgeo.obj \
	..\src\lib\geoutm.obj \
	..\src\lib\raddms.obj \
	..\pigsrc\utils\text.obj \
	..\pigsrc\utils\about.obj \
	..\pigsrc\pig\testrhp.obj \
	..\pigsrc\wpig\PIG_MENU.obj \
	..\pigsrc\pig\PIGPANEL.obj \
	..\pigsrc\pig\pigreg.obj \
	..\pigsrc\wpig\WPIG.obj \
	..\pigsrc\wpig\PIG.obj \
	    ..\pigsrc\wpig\PIGlicen.obj \
	    ..\pigsrc\xpig\licence.obj \
            ..\pigsrc\wpig\pigplat.obj \
            ..\pigsrc\wpig\PIG1.obj \
            \hasp\winapi\c\haspmsc3.obj \
            \hasp\winapi\c\haspmsw3.obj
	$(LINK) $(LFLAGS) @<<
$(**: =+^
)
$@

$(MFCLIB) +
$(FWINLIBS),
$(DEF)
<<NOKEEP

editor.exe : editor.xxx ..\pigsrc\wpig\wpig.res
	copy $*.xxx $@
	rc $(RCFLAGS) ..\pigsrc\wpig\wpig.res $@

noder.xxx: noder\blockdat.obj \
	editor\init.obj \
	..\pigsrc\pig\pigid.obj \
	noder\noder.obj \
	editor\window.obj \
	editor\tristore.obj \
	editor\triinfo.obj \
	editor\validate.obj \
	noder\nodeconf.obj \
	noder\readnode.obj \
	noder\ncntbnd.obj \
	noder\nodemod.obj \
	noder\writnode.obj \
	noder\nodeinfo.obj \
	noder\nodepoly.obj \
	noder\nodeupdt.obj \
	noder\nodeutil.obj \
	noder\nodecoin.obj \
	noder\nodemenu.obj \
	noder\straight.obj \
	noder\nodegen.obj \
	noder\nodemesh.obj \
	noder\nnodit.obj \
	noder\noderesl.obj \
	noder\nodedpth.obj \
	noder\nodesplt.obj \
	noder\nodescal.obj \
	noder\nodechek.obj \
	..\src\lib\ran2.obj \
	..\src\lib\utmgeo.obj \
	..\src\lib\geoutm.obj \
	..\src\lib\raddms.obj \
	..\pigsrc\utils\text.obj \
	..\pigsrc\utils\about.obj \
	..\src\lib\sortit.obj \
	..\pigsrc\pig\testrhp.obj \
	..\pigsrc\wpig\PIG_MENU.obj \
	..\pigsrc\pig\PIGPANEL.obj \
	..\pigsrc\pig\pigreg.obj \
	..\pigsrc\wpig\WPIG.obj \
	    ..\pigsrc\wpig\PIGlicen.obj \
	    ..\pigsrc\xpig\licence.obj \
            ..\pigsrc\wpig\pigplat.obj \
	..\pigsrc\wpig\PIG.obj \
            ..\pigsrc\wpig\PIG1.obj \
            \hasp\winapi\c\haspmsc3.obj \
            \hasp\winapi\c\haspmsw3.obj
	$(LINK) $(LFLAGS) @<<
$(**: =+^
)
$@

$(MFCLIB) +
$(FWINLIBS),
$(DEF)
<<NOKEEP

noder.exe : noder.xxx ..\pigsrc\wpig\wpig.res
	copy $*.xxx $@
	rc $(RCFLAGS) ..\pigsrc\wpig\wpig.res $@

splitter.xxx: editor\init.obj \
	..\pigsrc\pig\pigid.obj \
	splitter\mainsp.obj \
	splitter\picsp.obj \
	splitter\splitmod.obj \
	splitter\wrfile2.obj \
	editor\grid.obj \
	editor\config.obj \
	editor\info.obj \

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -