aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/tutorial/make-sub.pd-msvc
blob: b1ffbdf37ba039b10855ffab681826b3fd167250 (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
49
50
51
52
53
54
55
# flext tutorial examples
# Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net)
#
# Sub-Makefile for 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

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

!ifdef SNDOBJ
INCPATH=$(INCPATH) /I"$(SNDOBJ)" 
LIBS=$(LIBS) "$(SNDOBJLIB)"
!endif

!ifdef STK
INCPATH=$(INCPATH) /I"$(STK)" 
LIBS=$(LIBS) "$(STKLIB)"
CFLAGS=$(CFLAGS) /GX
!endif

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



# 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