5
LIBRARY = $(SCIDIR)/libs/wsci.a
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
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
14
OBJSC = $(OBJSC1) $(OBJSC2)
18
include ../../Makefile.incl
20
CFLAGS = $(CC_OPTIONS) -I../ -Wall
22
FFLAGS = $(FC_OPTIONS)
28
#================== dependencies
30
wgraph.o : ../graphics/periWin-bcg.h
31
wmhelp.o : ../sun/h_help.h ../graphics/periWin-bcg.h ../machine.h
33
readcons.o : readline.c wtextc.h
34
readgcwin.o : readline.c
35
readwin.o : readline.c
37
#================= resources
43
Rscilab.o : Rscilab.res
44
$(CVTRES) Rscilab.res Rscilab.o
46
Rscilab.res: Rscilab.rc wresource.h
47
$(RC) $(RCVARS) /foRscilab.res Rscilab.rc
49
#===================test ========================
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)
59
#=================== lpr ===========================
61
all:: ../../bin/lpr.exe
63
../../bin/lpr.exe : lpr.o
64
$(CC) $(CFLAGS) -DGVW_ALONE $(LINKEROPT) -o $@ \
69
#=================== runscilab========================
71
RUNOBJSC = runscilab.o
72
RUNRESOURCES= Rrunscilab.o
74
RUNLINKEROPT=-Wl,-subsystem,windows,-S
76
all :: ../../bin/runscilab.exe
78
../../bin/runscilab.exe : $(RUNOBJSC) $(RUNRESOURCES)
79
$(CC) $(CFLAGS) $(RUNLINKEROPT) -o ../../bin/runscilab.exe $(RUNOBJSC) \
80
$(RUNRESOURCES) $(WIN32LIBS)
82
all :: $(RUNRESOURCES)
84
Rrunscilab.o : Rrunscilab.res
85
$(CVTRES) Rrunscilab.res Rrunscilab.o
87
Rrunscilab.res: Rrunscilab.rc
88
$(RC) $(RCVARS) /foRrunscilab.res Rrunscilab.rc
91
$(RM) $(RUNOBJSC) $(RUNRESOURCES) Rsunscilab.res
94
$(RM) $(RUNOBJSC) $(RUNRESOURCES) Rsunscilab.res