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.
7 # Build settings, modify as necessary
8 # -----------------------------------
10 # Each Makefile.nmake sets $(TOP) as path to top level examples directory
12 # $(cpprefix) is the top directory of C-Pluff installation
13 cpprefix = $(TOP)\..\..\..\..
15 # $(cpincdir) is the include directory of C-Pluff installation
16 cpincdir = $(cpprefix)\include
18 # $(cplibdir) is the library directory of C-Pluff installation
19 cplibdir = $(cpprefix)\lib
21 # $(prefix) is the top installation directory for C-Pluff examples
24 # $(bindir) is the installation directory for C-Pluff example binaries
25 bindir = $(prefix)\bin
27 # Define compiler and flags
29 CFLAGS = /nologo /I$(cpincdir)
32 # Common build rules, no need to modify
33 # -------------------------------------
36 CFLAGS = $(CFLAGS) /DHAVE_STAT
38 RECURSIVE_RULES = all install clean
41 @if not "$(SUBDIRS)"=="" @for %d in ($(SUBDIRS)) do @$(TOP)\nmakedir %d $@
43 @nmake /nologo /f Makefile.nmake $@-local
47 install-local: all-local