File: watfind.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 (67 lines) | stat: -rw-r--r-- 1,789 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
67
# Make file for find_orb with the Watcom C/C++ compiler.
# Version using PDCurses.

!ifeq DOS Y
LINK_OPTS=l wafuncs.lib l wjpleph.lib l wsatlib.lib l find_orb.lib
CURSES_OBJ=mycurses.obj bmouse.obj
!else
LINK_OPTS=l wafuncs.lib l wjpleph.lib l wsatlib.lib l find_orb.lib l pdcurses.lib f clipfunc.obj
CURSES_OBJ=clipfunc.obj
!endif

all: find_orb.exe fo.exe fo_serve.exe

LINKOPTS=option stub=dos32a option map=find_orb.map option stack=20000

OBJS=b32_eph.obj bc405.obj bias.obj collide.obj conv_ele.obj &
  details.obj eigen.obj elem2tle.obj elem_out.obj elem_ou2.obj ephem0.obj &
  errors.obj gauss.obj geo_pot.obj healpix.obj lsquare.obj &
  miscell.obj moid4.obj monte0.obj mpc_fmt.obj mpc_obs.obj mt64.obj &
!ifeq DOS Y
  $(CURSES_OBJ) &
!endif
  nanosecs.obj orb_func.obj orb_fun2.obj pl_cache.obj roots.obj &
  runge.obj sm_vsop.obj sr.obj shellsor.obj sigma.obj stackall.obj

find_orb.lib: $(OBJS)
   %write wfind.lrf $(OBJS)
   wlib -q -n -t $@ @wfind.lrf
   -rm wfind.lrf

find_orb.exe: findorb.obj find_orb.lib $(CURSES_OBJ)
   wlink N find_orb.exe f findorb.obj $(LINK_OPTS)

fo.exe: fo.obj find_orb.lib
   wlink N fo.exe f fo.obj $(LINK_OPTS)

fo_serve.exe: fo_serve.obj find_orb.lib cgi_func.obj
   wlink N fo_serve.exe f fo.obj f cgi_func.obj $(LINK_OPTS)

clean:
   -rm $(OBJS)
   -rm $(CURSES_OBJ)
   -rm cgi_func.obj
   -rm covar.txt
   -rm debug.txt
   -rm elements.txt
   -rm findorb.obj
   -rm find_orb.exe
   -rm find_orb.lib
   -rm find_orb.map
   -rm -v fo.exe
   -rm fo.obj
   -rm fo_serve.exe
   -rm fo_serve.obj
   -rm -v gauss.out
   -rm -v mpc_fmt.txt
   -rm -v ephemeri.txt guide.txt monte.txt mpec.htm residual.txt
   -rm -v mpcorb.dat
   -rm -v observe.txt
   -rm state.txt
   -rm wfind.lrf

CFLAGS=/Ox /W3 /4r /s /j /zq

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