-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
33 lines (28 loc) · 716 Bytes
/
Makefile
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
############################################################
# ZMat: A portable C-library and MATLAB/Octave toolbox for inline data compression
#
# Author: Qianqian Fang <q.fang at neu.edu>
############################################################
PKGNAME=zmat
LIBNAME=lib$(PKGNAME)
MEXNAME=zipmat
VERSION=0.9.9
SOURCE=src
EXAMPLE=example/c
all: mex oct lib dll example
lib:
-$(MAKE) -C $(SOURCE) lib
dll:
-$(MAKE) -C $(SOURCE) dll
mex:
-$(MAKE) -C $(SOURCE) mex
oct:
-$(MAKE) -C $(SOURCE) oct
example: lib
-$(MAKE) -C $(EXAMPLE) all
clean:
-rm -rf $(LIBNAME).* $(MEXNAME).mex*
-$(MAKE) -C $(SOURCE) clean
-$(MAKE) -C $(EXAMPLE) clean
.DEFAULT_GOAL := mex
.PHONY: all lib dll mex oct example clean