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

« back to all changes in this revision

Viewing changes to util/MakeC.mak

  • 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
# Makefile.mak used to generate dlls 
 
2
# for dem01.dem file or other files 
 
3
# This makefile can be used to create 
 
4
# dll's for files which are in other directory 
 
5
# nmake /f c:/.../demos/intro/Makefile.mak ctarget TARGET=foo SCIDIR1=c:\...\
 
6
 
 
7
SCIDIR=../..
 
8
SCIDIR1=..\..
 
9
 
 
10
DUMPEXTS="$(SCIDIR1)\bin\dumpexts"
 
11
SCIIMPLIB="$(SCIDIR1)\bin\LibScilab.lib"
 
12
F2C="$(SCIDIR1)\bin\f2c"
 
13
 
 
14
!include $(SCIDIR1)\Makefile.incl.mak 
 
15
 
 
16
FFLAGS = $(FC_OPTIONS) 
 
17
CFLAGS = $(CC_OPTIONS) -DFORDLL  -I"$(SCIDIR1)/routines/f2c" -I"$(SCIDIR1)/routines"
 
18
TARGET=FOO
 
19
 
 
20
all :: $(TARGET).dll
 
21
 
 
22
$(TARGET).dll : $(TARGET).c 
 
23
        @$(CC) $(CFLAGS) $*.c 
 
24
        @echo Creation of dll $(DLL) and import lib 
 
25
        @$(DUMPEXTS) -o "$*.def" "$*.dll" $*.obj
 
26
        @$(LINKER) $(LINKER_FLAGS) $*.obj $(SCIIMPLIB) $(XLIBSBIN) $(TERMCAPLIB) /nologo /dll /out:"$*.dll" /implib:"$*.ilib" /def:"$*.def" 
 
27
 
 
28
distclean:: clean
 
29
 
 
30
clean:: 
 
31
        -@del $(TARGET).obj 
 
32
        -@del $(TARGET).dll
 
33
        -@del $(TARGET).exp 
 
34
        -@del $(TARGET).ilib 
 
35
        -@del $(TARGET).ilk 
 
36
        -@del $(TARGET).pdb
 
37
        -@del $(TARGET).def
 
38