File: makefile

package info (click to toggle)
libics 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,196 kB
  • sloc: ansic: 8,873; sh: 4,461; cpp: 770; makefile: 148
file content (33 lines) | stat: -rw-r--r-- 770 bytes parent folder | download | duplicates (2)
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
#
# Copyright (C) 2000-2010 Cris Luengo and others
#
# Makefile to compile matlab interface under Win32
#

MEXEXT = mexw32

MATLAB_ROOT = C:\MATLAB701
ZLIB_ROOT = C:\src\zlib
ICS_ROOT = ..\..
LIBPATH = $(ICS_ROOT)
INCLUDEPATH = $(ICS_ROOT)

MEX = $(MATLAB_ROOT)\bin\win32\mex

MEXFLAGS = -O -DWIN32
# The next line is for the DLL version of libics. If you want to use
# the static library, remove the next line.
MEXFLAGS = $(MEXFLAGS) -DUSE_ICSLIB_DLL

all : icswrite.$(MEXEXT) icsread.$(MEXEXT)
	@echo Done!

icsread.$(MEXEXT): icsread.c
	$(MEX) $(MEXFLAGS) $^ -I$(INCLUDEPATH) $(LIBPATH)\libics.lib $(ZLIB_ROOT)\zlib.lib


icswrite.$(MEXEXT): icswrite.c
	$(MEX) $(MEXFLAGS) $^ -I$(INCLUDEPATH) $(LIBPATH)\libics.lib $(ZLIB_ROOT)\zlib.lib

clean:
	@-del /q *.$(MEXEXT)