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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
SHELL = /bin/sh
SCIDIR=../..
SCIDIR1=..\..
LIBRARY = $(SCIDIR)/libs/wsci.lib
OBJSC1 =wtext.obj wgnuplib.obj wmenu.obj wprinter.obj wpause.obj wgraph.obj winmain.obj \
wmhelp.obj wgmenu.obj wstatbar.obj gvwprn.obj wmprint.obj wmtex.obj
OBJSC2 =readwin.obj wtloop.obj misc.obj \
command.obj readcons.obj x_zzledt.obj jpc_Xloop.obj sh.obj \
strings.obj files.obj tclWinError.obj
OBJSC = $(OBJSC1) $(OBJSC2)
OBJSF =
include ../../Makefile.incl.mak
CFLAGS = $(CC_OPTIONS)
FFLAGS = $(FC_OPTIONS)
include ../Make.lib.mak
#================== dependencies
wgraph.obj : ../graphics/periWin-bcg.h
wmhelp.obj : ../sun/h_help.h ../graphics/periWin-bcg.h ../machine.h
$(OBJSC) : wgnuplib.h
#================= resources
RESOURCES= Rscilab.res
all :: $(RESOURCES)
Rscilab.res: Rscilab.rc wresource.h
$(RC) $(RCVARS) /foRscilab.res Rscilab.rc
GUIFLAGS=-SUBSYSTEM:windows
#===================test ========================
!IF "$(DTK)" == "-DWITH_TK"
GTK_LIBS= ../../libs/tksci.lib ../../libs/intersci.lib ../../libs/libf2c.lib $(XLIBS)
!ELSE
GTK_LIBS= $(XLIBS)
!ENDIF
test : $(RESOURCES) wtest.obj ../../libs/wsci.lib
@echo Creation of ../../bin/test-vc.exe
@$(LINKER) $(LINKER_FLAGS) $(GUIFLAGS) \
-OUT:"../../bin/test-vc.exe" wtest.obj \
$(RESOURCES) ../../libs/wsci.lib ../../libs/graphics.lib \
../../libs/wsci.lib ../../libs/menusX.lib \
../../libs/sun.lib ../../libs/system.lib ../../libs/xdr.lib \
$(GTK_LIBS)
wtest.obj : wtloop.c
#=================== lpr ===========================
all:: ../../bin/lpr.exe
../../bin/lpr.exe : lpr.obj
@echo Creation of $*.exe
@$(LINKER) -SUBSYSTEM:console -OUT:"../../bin/lpr.exe" lpr.obj \
$(RESOURCES) $(GUILIBS)
lpr.obj : gvwprn.c
#=================== runscilab========================
RUNRESOURCES= Rrunscilab.res
all:: ../../bin/runscilab.exe
../../bin/runscilab.exe: runscilab.c $(RUNRESOURCES)
@echo Creation of $*.exe
@del runscilab.obj
@$(CC) $(CFLAGS) -DTEST runscilab.c
@$(LINKER) -SUBSYSTEM:windows -OUT:"../../bin/runscilab.exe" \
runscilab.obj $(RESOURCES) $(GUILIBS)
# resources
all :: $(RUNRESOURCES)
Rrunscilab.res: Rrunscilab.rc
$(RC) $(RCVARS) /foRrunscilab.res Rrunscilab.rc
readcons.obj : readline.c wtextc.h
readgcwin.obj : readline.c
readwin.obj : readline.c
|