~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to routines/wsci/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SHELL = /bin/sh
 
2
SCIDIR=../..
 
3
SCIDIR1=..\..
 
4
 
 
5
LIBRARY = $(SCIDIR)/libs/wsci.a
 
6
 
 
7
OBJSC1 =wtext.o wgnuplib.o wmenu.o wprinter.o wpause.o wgraph.o winmain.o \
 
8
        wmhelp.o wgmenu.o wstatbar.o gvwprn.o wmprint.o wmtex.o
 
9
 
 
10
OBJSC2 =readwin.o wtloop.o misc.o \
 
11
        command.o readcons.o x_zzledt.o jpc_Xloop.o sh.o \
 
12
        strings.o files.o tclWinError.o 
 
13
 
 
14
OBJSC = $(OBJSC1) $(OBJSC2)
 
15
 
 
16
OBJSF = 
 
17
 
 
18
include ../../Makefile.incl
 
19
 
 
20
CFLAGS = $(CC_OPTIONS) -I../ -Wall
 
21
 
 
22
FFLAGS = $(FC_OPTIONS)
 
23
 
 
24
include ../Make.lib
 
25
 
 
26
 
 
27
 
 
28
#================== dependencies 
 
29
 
 
30
wgraph.o : ../graphics/periWin-bcg.h
 
31
wmhelp.o : ../sun/h_help.h ../graphics/periWin-bcg.h ../machine.h
 
32
$(OBJSC) : wgnuplib.h
 
33
readcons.o      : readline.c wtextc.h 
 
34
readgcwin.o     : readline.c 
 
35
readwin.o       : readline.c
 
36
 
 
37
#================= resources 
 
38
 
 
39
RESOURCES= Rscilab.o
 
40
 
 
41
all     :: $(RESOURCES) 
 
42
 
 
43
Rscilab.o       : Rscilab.res 
 
44
        $(CVTRES) Rscilab.res Rscilab.o
 
45
 
 
46
Rscilab.res: Rscilab.rc wresource.h
 
47
        $(RC) $(RCVARS) /foRscilab.res Rscilab.rc
 
48
 
 
49
#===================test ========================
 
50
 
 
51
test    : $(RESOURCES) wtest.o ../../libs/wsci.a
 
52
        $(CC) $(CFLAGS) $(LINKEROPT) -o ../../bin/test.exe wtest.o \
 
53
        $(RESOURCES) ../../libs/wsci.a ../../libs/graphics.a \
 
54
        ../../libs/wsci.a ../../libs/menusX.a \
 
55
        ../../libs/sun.a ../../libs/system.a ../../libs/xdr.a -Wl,-subsystem,console $(WINLIBS)
 
56
 
 
57
wtest.o : wtloop.c 
 
58
 
 
59
#=================== lpr ===========================
 
60
 
 
61
all:: ../../bin/lpr.exe
 
62
 
 
63
../../bin/lpr.exe : lpr.o 
 
64
        $(CC) $(CFLAGS) -DGVW_ALONE $(LINKEROPT)  -o $@ \
 
65
        lpr.o  $(WIN32LIBS)
 
66
 
 
67
lpr.o : gvwprn.c 
 
68
 
 
69
#=================== runscilab========================
 
70
 
 
71
RUNOBJSC = runscilab.o
 
72
RUNRESOURCES= Rrunscilab.o
 
73
 
 
74
RUNLINKEROPT=-Wl,-subsystem,windows,-S
 
75
 
 
76
all     :: ../../bin/runscilab.exe
 
77
 
 
78
../../bin/runscilab.exe         : $(RUNOBJSC) $(RUNRESOURCES)
 
79
        $(CC) $(CFLAGS) $(RUNLINKEROPT) -o ../../bin/runscilab.exe $(RUNOBJSC) \
 
80
        $(RUNRESOURCES) $(WIN32LIBS)
 
81
 
 
82
all     :: $(RUNRESOURCES) 
 
83
 
 
84
Rrunscilab.o    : Rrunscilab.res 
 
85
        $(CVTRES) Rrunscilab.res Rrunscilab.o
 
86
 
 
87
Rrunscilab.res: Rrunscilab.rc 
 
88
        $(RC) $(RCVARS) /foRrunscilab.res Rrunscilab.rc
 
89
 
 
90
clean   ::
 
91
        $(RM) $(RUNOBJSC) $(RUNRESOURCES) Rsunscilab.res
 
92
 
 
93
distclean::
 
94
        $(RM) $(RUNOBJSC) $(RUNRESOURCES) Rsunscilab.res