File: common.nmake

package info (click to toggle)
cpluff 0.2.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,996 kB
  • sloc: ansic: 9,055; sh: 4,734; cpp: 731; makefile: 382; xml: 244; sed: 16
file content (49 lines) | stat: -rwxr-xr-x 1,305 bytes parent folder | download | duplicates (3)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# C-Pluff examples build system for MSVC
# Copyright 2007 Johannes Lehtinen
# This file is free software; Johannes Lehtinen gives unlimited permission
# to copy, distribute and modify it.


# Build settings, modify as necessary
# -----------------------------------

# Each Makefile.nmake sets $(TOP) as path to top level examples directory

# $(cpprefix) is the top directory of C-Pluff installation
cpprefix = $(TOP)\..\..\..\..

# $(cpincdir) is the include directory of C-Pluff installation
cpincdir = $(cpprefix)\include

# $(cplibdir) is the library directory of C-Pluff installation
cplibdir = $(cpprefix)\lib

# $(prefix) is the top installation directory for C-Pluff examples
prefix = $(cpprefix)

# $(bindir) is the installation directory for C-Pluff example binaries
bindir = $(prefix)\bin

# Define compiler and flags
CC = cl
CFLAGS = /nologo /I$(cpincdir)


# Common build rules, no need to modify
# -------------------------------------

# Windows has stat(2)
CFLAGS = $(CFLAGS) /DHAVE_STAT

RECURSIVE_RULES = all install clean

$(RECURSIVE_RULES):
	@if not "$(SUBDIRS)"=="" @for %d in ($(SUBDIRS)) do @$(TOP)\nmakedir %d $@
	@echo Making $@ in .
	@nmake /nologo /f Makefile.nmake $@-local

all-local:

install-local: all-local

clean-local: