~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to demos/intro/MakeC.mak

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

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"
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