File: win_find.mak

package info (click to toggle)
pluto-find-orb 0.0~git20180227-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,668 kB
  • sloc: cpp: 30,743; makefile: 263
file content (66 lines) | stat: -rw-r--r-- 2,655 bytes parent folder | download
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
# Makefile for Microsoft C/C++ to build a Windows executable with MFC.
# Add BITS_32=Y for 32-bit code.  Assumes various libraries
# ('lunar' or 'lunar64', 'sat_code', 'jpl_eph') will be found.

OBJS=about.obj b32_eph.obj bc405.obj bias.obj clipfunc.obj \
  collide.obj conv_ele.obj details.obj eigen.obj elem2tle.obj elem_ou2.obj \
  elem_out.obj ephem0.obj ephem.obj generic.obj gauss.obj \
  geo_pot.obj healpix.obj lsquare.obj miscell.obj \
  moid4.obj monte0.obj errors.obj monte.obj mpc_fmt.obj \
  mpc_obs.obj mt64.obj nanosecs.obj orbitdlg.obj \
  orb_func.obj orb_fun2.obj pl_cache.obj roots.obj  \
  runge.obj settings.obj shellsor.obj stackall.obj \
  sigma.obj simplex.obj sm_vsop.obj sr.obj stdafx.obj

!ifdef BITS_32
COMMON_FLAGS=-nologo -W3 -EHsc -c -FD
COMMON_LINK=lunar.lib jpleph.lib sat_code.lib /nologo /stack:0x8800 /subsystem:windows
EXE_NAME=find_o32.exe
RM=rm
!else
COMMON_FLAGS=-nologo -W3 -EHsc -c -FD -D_CRT_SECURE_NO_WARNINGS
COMMON_LINK=lunar64.lib jpleph.lib sat_code.lib /nologo /stack:0x8800 /subsystem:windows -ENTRY:"wWinMainCRTStartup"
EXE_NAME=find_o64.exe
RM=del
!endif

!ifdef DEBUG
CFLAGS=-MDd -Gm -Zi -Od -D "_DEBUG" -Fp"find_orb.pch" $(COMMON_FLAGS) -D "_AFXDLL"
LINK_FLAGS=$(COMMON_LINK) -profile -map:"find_orb.map" -debug
!else
CFLAGS=-MT -O1 -D "NDEBUG" $(COMMON_FLAGS)
LINK_FLAGS=$(COMMON_LINK) -incremental:no
!endif

all: $(EXE_NAME)

$(EXE_NAME):              find_orb.obj $(OBJS) find_orb.res
     link $(LINK_FLAGS) find_orb.obj $(OBJS) find_orb.res
     del $(EXE_NAME)
     ren find_orb.exe $(EXE_NAME)

.cpp.obj:
   cl $(CFLAGS) $<

clean:
   $(RM) $(OBJS)
   $(RM) fo.obj find_orb.obj fo_serve.obj
   $(RM) covar.txt covar?.txt debug.txt eleme?.txt elements.txt
   $(RM) ephemeri.txt find_orb$(EXE) fo$(EXE) gauss.out monte.txt monte?.txt
   $(RM) mpc_f?.txt mpc_fmt.txt mpec.htm obser?.txt observe.txt
   $(RM) residual.txt state.txt state?.txt virtu?.txt virtual.txt
   $(RM) sr_elems.txt mpcorb.dat fo_serve.cgi find_orb.res
   $(RM) mpc_fmt.txt elements.txt covar.txt gauss.out
   $(RM) find_orb.exp vc50.pdb obs_temp.txt guide.txt
   $(RM) find_orb.map find_orb.pdb find_orb.lib vc*.idb

clean_temp:
   $(RM) covar.txt covar?.txt debug.txt eleme?.txt elements.txt
   $(RM) ephemeri.txt                         gauss.out monte.txt monte?.txt
   $(RM) mpc_f?.txt mpc_fmt.txt mpec.htm obser?.txt observe.txt
   $(RM) residual.txt state.txt state?.txt virtu?.txt virtual.txt
   $(RM) sr_elems.txt mpcorb.dat              find_orb.res
   $(RM) mpc_fmt.txt elements.txt covar.txt gauss.out
   $(RM) find_orb.exp vc50.pdb obs_temp.txt guide.txt
   $(RM) find_orb.map find_orb.pdb find_orb.lib vc*.idb