# 
#  $Id: make_win,v 1.2 2002/09/24 14:59:49 rath Exp $
# 
#  Copyright 2002 Matthias Rath (rath@sci.univr.it)
# 
#  The  pd  modules  contained herein are the result of a joint effort from
#  several authors in the context of the IST-FET Disappearing Computer pro-
#  active    project    called    SOb   (Sound   Object)   (IST-2000-25287,
#  http://www.soundobject.org)  at  the   University   of   Verona,   Italy
#  (http://www.univr.it).
# 
#  The main author of the modules is Matthias Rath (rath@sci.univr.it).
# 
#  Other authors (either writers or designers) are:
# 
#  Davide Rocchesso (rocchesso@sci.univr.it)
#  Federico Fontana (fontana@sci.univr.it)
#  Laura Ottaviani (ottavian@sci.univr.it)
#  Gianpaolo Borin (gianpaolo.borin@tin.it)
#  Federico Avanzini (avanzini@dei.unipd.it)
#  Nicola Bernardini (nicb@centrotemporeale.it)
# 
#  This file is part of the SOb PD modules.
#
#  The  SOb  PD modules are free software; you can redistribute them and/or
#  modify them under the  terms  of  the  GNU  General  Public  License  as
#  published   by   the  Free Software  Foundation;  either  version  2  of
#  the  License, or (at your option) any later version.
#
#  The SOb PD modules are distributed in the hope that it will be   useful,
#  but   WITHOUT  ANY   WARRANTY;   without   even  the implied warranty of
#  MERCHANTABILITY or FITNESS  FOR  A  PARTICULAR  PURPOSE.   See  the  GNU
#  General  Public  License for more details.
#
#  You  should have received a copy of the GNU General Public License along
#  with the SOb PD modules; if not, write to the Free  Software  Foundation,
#  Inc.,  59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
# 
############################################################################
#
# This is the make-file for the roller.dll module under windows32
#

# The following line should give the path to Microsoft Visual C++:
#VC = "d:\Programmi\Microsoft Visual Studio\VC98"
VC = "c:\Programme\Microsoft Visual Studio\Vc98"

# The following line should give the path to your local pd installation:
#PD = d:\Programmi\pd
PD = "c:\Programme\Pd"

# The following line specifies the folder to hold your pd binary files.
# You can change this line according to your needs, e.g. /usr/local/... :
#WINBINDIR = $(TOP)\..
WINBINDIR = "d:\PD-Stuff"


TARGET = roller

OBJ = $(TABLES:.c=.obj) roller_table_mgr.obj roller_plot.obj
TABLES=roller_tables.c

WINLDIR = $(VC)\lib
WINLIB = $(WINLDIR)\libc.lib \
	$(WINLDIR)\oldnames.lib \
	$(WINLDIR)\kernel32.lib \
	$(PD)\bin\pd.lib

WININCLUDE = /I$(VC)\Include \
		/I$(PD)\src

WINCFLAGS = /W3 /WX /DNT /DPD /nologo
CFLAGS = $(WINCFLAGS) $(WININCLUDE)

all:	$(TARGET).dll install

$(TARGET).dll:	$(TARGET).obj $(OBJ)
	link /dll /export:$(TARGET)_setup $(WINLIB) $*.obj $(OBJ)

$(TARGET).obj:	$(TARGET).c
	cl $(CFLAGS) /c $(TARGET).c

install:
#	strip --strip-unneeded $(TARGET).dll
	move $(TARGET).dll $(WINBINDIR)

#clean:
#	del $(TARGET).o
#	del $(TARGET).exp
#	del $(TARGET).lib
