iotivity 0.9.0
[platform/upstream/iotivity.git] / service / protocol-plugin / lib / cpluff / examples / common.nmake
1 # C-Pluff examples build system for MSVC
2 # Copyright 2007 Johannes Lehtinen
3 # This file is free software; Johannes Lehtinen gives unlimited permission
4 # to copy, distribute and modify it.
5
6
7 # Build settings, modify as necessary
8 # -----------------------------------
9
10 # Each Makefile.nmake sets $(TOP) as path to top level examples directory
11
12 # $(cpprefix) is the top directory of C-Pluff installation
13 cpprefix = $(TOP)\..\..\..\..
14
15 # $(cpincdir) is the include directory of C-Pluff installation
16 cpincdir = $(cpprefix)\include
17
18 # $(cplibdir) is the library directory of C-Pluff installation
19 cplibdir = $(cpprefix)\lib
20
21 # $(prefix) is the top installation directory for C-Pluff examples
22 prefix = $(cpprefix)
23
24 # $(bindir) is the installation directory for C-Pluff example binaries
25 bindir = $(prefix)\bin
26
27 # Define compiler and flags
28 CC = cl
29 CFLAGS = /nologo /I$(cpincdir)
30
31
32 # Common build rules, no need to modify
33 # -------------------------------------
34
35 # Windows has stat(2)
36 CFLAGS = $(CFLAGS) /DHAVE_STAT
37
38 RECURSIVE_RULES = all install clean
39
40 $(RECURSIVE_RULES):
41         @if not "$(SUBDIRS)"=="" @for %d in ($(SUBDIRS)) do @$(TOP)\nmakedir %d $@
42         @echo Making $@ in .
43         @nmake /nologo /f Makefile.nmake $@-local
44
45 all-local:
46
47 install-local: all-local
48
49 clean-local: