aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/tutorial/makefile.pd-msvc
blob: 385630e0e7fcac7a944bd45fbb83caf1d2db9a8b (plain)
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
# flext tutorial examples
# Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net)
#
# Makefile for MSVC++
#
#
# IMPORTANT: Adjust some of the paths also in makefile-inc.msvc
#
# usage: make -f makefile.pd-msvc
#
# ---------------------------------------------------------------

!include config-pd-msvc.txt

# includes
INCPATH=/I"$(MSVCPATH)\include" /I"$(PDPATH)\src" /I"$(FLEXTPATH)"
LIBPATH=/LIBPATH:"$(MSVCPATH)\lib" /LIBPATH:"$(PDPATH)\bin" /LIBPATH:"$(FLEXTPATH)"
LIBS=pd.lib pthreadVC.lib flext_t-pdwin.lib

# compiler definitions and flags
DEFS=/DFLEXT_SYS=2 /DFLEXT_THREADS

CFLAGS=/GR /GD /G6 /Ox /MT


# the rest can stay untouched
# ----------------------------------------------

# all the source files from the package
SRCS=main.cpp
HDRS=

# -----------------------------------------------

all: $(OUTPATH) $(OUTPATH)\$(NAME).dll

$(OUTPATH):
	-mkdir $(OUTPATH)

$(OUTPATH)\$(NAME)~.dll : $(OUTPATH)\$(NAME).dll
	-ren $** $<

$(OUTPATH)\$(NAME).dll : $(DIR)\$(SRCS)
	cl /c /LD $(CFLAGS) $(DEFS) $(INCPATH) $** /Fotemp.obj
	link /DLL /out:$@ /INCREMENTAL:NO temp.obj $(LIBS) $(LIBPATH)
	@-del $(OUTPATH)\*.exp
	@-del $(OUTPATH)\*.lib
	@-del temp.obj