Skip to content

Commit

Permalink
Initial revision
Browse files Browse the repository at this point in the history
  • Loading branch information
cannam committed Aug 13, 2004
0 parents commit bfc2d53
Show file tree
Hide file tree
Showing 19 changed files with 5,369 additions and 0 deletions.
170 changes: 170 additions & 0 deletions Make.rules.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
# Copyright 2000 Francois Gouget for CodeWeavers
# [email protected]
#
# Global rules shared by all makefiles -*-Makefile-*-
#
# Each individual makefile must define the following variables:
# TOPOBJDIR : top-level object directory
# SRCDIR : source directory for this module
#
# Each individual makefile may define the following additional variables:
#
# SUBDIRS : subdirectories that contain a Makefile
# DLLS : WineLib libraries to be built
# EXES : WineLib executables to be built
#
# CEXTRA : extra c flags (e.g. '-Wall')
# CXXEXTRA : extra c++ flags (e.g. '-Wall')
# WRCEXTRA : extra wrc flags (e.g. '-p _SysRes')
# DEFINES : defines (e.g. -DSTRICT)
# INCLUDE_PATH : additional include path
# LIBRARY_PATH : additional library path
# LIBRARIES : additional Unix libraries to link with
#
# C_SRCS : C sources for the module
# CXX_SRCS : C++ sources for the module
# RC_SRCS : resource source files
# SPEC_SRCS : interface definition files


# Where is Wine

WINE_INCLUDE_ROOT = @WINE_INCLUDE_ROOT@
WINE_INCLUDE_PATH = @WINE_INCLUDE_PATH@
WINE_LIBRARY_ROOT = @WINE_LIBRARY_ROOT@
WINE_LIBRARY_PATH = @WINE_LIBRARY_PATH@
WINE_DLL_ROOT = @WINE_DLL_ROOT@
WINE_DLL_PATH = @WINE_DLL_PATH@

LDPATH = @LDPATH@

# Where are the MFC

ATL_INCLUDE_ROOT = @ATL_INCLUDE_ROOT@
ATL_INCLUDE_PATH = @ATL_INCLUDE_PATH@
MFC_INCLUDE_ROOT = @MFC_INCLUDE_ROOT@
MFC_INCLUDE_PATH = @MFC_INCLUDE_PATH@
MFC_LIBRARY_ROOT = @MFC_LIBRARY_ROOT@
MFC_LIBRARY_PATH = @MFC_LIBRARY_PATH@

# Global definitions and options

GLOBAL_DEFINES =
GLOBAL_INCLUDE_PATH =
GLOBAL_DLL_PATH =
GLOBAL_DLLS =
GLOBAL_LIBRARY_PATH =
GLOBAL_LIBRARIES =

# First some useful definitions

SHELL = /bin/sh
CC = @CC@
CPP = @CPP@
CXX = @CXX@
WRC = @WRC@
CFLAGS = @CFLAGS@ $(CEXTRA)
CXXFLAGS = @CXXFLAGS@ $(CXXEXTRA)
WRCFLAGS = $(WRCEXTRA)
OPTIONS = @OPTIONS@ -D_REENTRANT
LIBS = @LIBS@ $(LIBRARY_PATH)
DIVINCL = $(GLOBAL_INCLUDE_PATH) -I$(SRCDIR) $(INCLUDE_PATH) $(WINE_INCLUDE_PATH)
ALLCFLAGS = $(DIVINCL) $(CFLAGS) $(GLOBAL_DEFINES) $(DEFINES) $(OPTIONS)
ALLCXXFLAGS=$(DIVINCL) $(CXXFLAGS) $(GLOBAL_DEFINES) $(DEFINES) $(OPTIONS)
ALL_DLL_PATH = $(DLL_PATH) $(GLOBAL_DLL_PATH) $(WINE_DLL_PATH)
ALL_LIBRARY_PATH = $(LIBRARY_PATH) $(GLOBAL_LIBRARY_PATH) $(WINE_LIBRARY_PATH)
WINE_LIBRARIES = -lwine -lwine_unicode -lwine_uuid
ALL_LIBRARIES = $(LIBRARIES:%=-l%) $(GLOBAL_LIBRARIES:%=-l%) $(WINE_LIBRARIES)
LDSHARED = @LDSHARED@
LDXXSHARED= @LDXXSHARED@
LDDLLFLAGS= @LDDLLFLAGS@
STRIP = strip
STRIPFLAGS= --strip-unneeded
LN_S = @LN_S@
RM = rm -f
MV = mv
MKDIR = mkdir -p
WINE = @WINE@
WINEBUILD = @WINEBUILD@
@SET_MAKE@

# Installation infos

INSTALL = install
INSTALL_PROGRAM = $(INSTALL)
INSTALL_SCRIPT = $(INSTALL)
INSTALL_DATA = $(INSTALL) -m 644
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
dlldir = @libdir@/wine

prog_manext = 1
conf_manext = 5

OBJS = $(C_SRCS:.c=.o) $(CXX_SRCS:.cpp=.o) \
$(SPEC_SRCS:.spec=.spec.o)
CLEAN_FILES = *.dbg.c *.spec.c y.tab.c y.tab.h lex.yy.c \
core *.orig *.rej \
\\\#*\\\# *~ *% .\\\#*

# Implicit rules

.SUFFIXES: .cpp .rc .res .spec .spec.c .spec.o

.c.o:
$(CC) -c $(ALLCFLAGS) -o $@ $<

.cpp.o:
$(CXX) -c $(ALLCXXFLAGS) -o $@ $<

.cxx.o:
$(CXX) -c $(ALLCXXFLAGS) -o $@ $<

.rc.res:
$(LDPATH) $(WRC) $(WRCFLAGS) $(DIVINCL) -o $@ $<

.PHONY: all install uninstall clean distclean depend dummy

# 'all' target first in case the enclosing Makefile didn't define any target

all: Makefile

# Rules for makefile

Makefile: Makefile.in $(TOPSRCDIR)/configure
@echo $@ is older than $?, please rerun $(TOPSRCDIR)/configure
@exit 1

# Rules for cleaning

$(SUBDIRS:%=%/__clean__): dummy
cd `dirname $@` && $(MAKE) clean

$(EXTRASUBDIRS:%=%/__clean__): dummy
-cd `dirname $@` && $(RM) $(CLEAN_FILES)

clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__)
$(RM) $(CLEAN_FILES) $(RC_SRCS:.rc=.res) $(OBJS)
$(RM) $(DLLS:%=%.dbg.o) $(DLLS:%=%.spec.o) $(DLLS:%=%.so)
$(RM) $(EXES:%=%.dbg.o) $(EXES:%=%.spec.o) $(EXES:%=%.so) $(EXES:%.exe=%)

# Rules for installing

$(SUBDIRS:%=%/__install__): dummy
cd `dirname $@` && $(MAKE) install

$(SUBDIRS:%=%/__uninstall__): dummy
cd `dirname $@` && $(MAKE) uninstall

# Misc. rules

$(SUBDIRS): dummy
@cd $@ && $(MAKE)

dummy:

# End of global rules
199 changes: 199 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@

### Generic autoconf variables

TOPSRCDIR = @top_srcdir@
TOPOBJDIR = .
SRCDIR = @srcdir@
VPATH = @srcdir@

SUBDIRS =
DLLS =
EXES = dssi-vst-server.exe dssi-vst-scanner.exe dssi-vst_gui.exe


### Common settings

DEFINES =
INCLUDE_PATH = -I/home/cannam/vst/vstsdk2.3/source/common
DLL_PATH =
LIBRARY_PATH = -L.
LIBRARIES = remoteplugin


### dssi-vst-server.exe sources and settings

dssi-vst-server_exe_MODULE = dssi-vst-server.exe
dssi-vst-server_exe_APPMODE = gui
dssi-vst-server_exe_C_SRCS =
dssi-vst-server_exe_CXX_SRCS = dssi-vst-server.cpp
dssi-vst-server_exe_RC_SRCS =
dssi-vst-server_exe_SPEC_SRCS =
dssi-vst-server_exe_DLL_PATH = -L$(WINE_DLL_ROOT)
dssi-vst-server_exe_DLLS = advapi32 \
comdlg32 \
gdi32 \
kernel32 \
odbc32 \
ole32 \
oleaut32 \
shell32 \
user32 \
winspool
dssi-vst-server_exe_LIBRARY_PATH=
dssi-vst-server_exe_LIBRARIES =
dssi-vst-server_exe_DEPENDS =

dssi-vst-server_exe_OBJS = $(dssi-vst-server_exe_C_SRCS:.c=.o) \
$(dssi-vst-server_exe_CXX_SRCS:.cpp=.o) \
$(EXTRA_OBJS)


### dssi-vst_gui.exe sources and settings

dssi-vst_gui_exe_MODULE = dssi-vst_gui.exe
dssi-vst_gui_exe_APPMODE = gui
dssi-vst_gui_exe_C_SRCS =
dssi-vst_gui_exe_CXX_SRCS = dssi-vst_gui.cpp
dssi-vst_gui_exe_RC_SRCS =
dssi-vst_gui_exe_SPEC_SRCS =
dssi-vst_gui_exe_DLL_PATH = -L$(WINE_DLL_ROOT)
dssi-vst_gui_exe_DLLS = advapi32 \
comdlg32 \
gdi32 \
kernel32 \
odbc32 \
ole32 \
oleaut32 \
shell32 \
user32 \
winspool
dssi-vst_gui_exe_LIBRARY_PATH=
dssi-vst_gui_exe_LIBRARIES = lo
dssi-vst_gui_exe_DEPENDS =

dssi-vst_gui_exe_OBJS = $(dssi-vst_gui_exe_C_SRCS:.c=.o) \
$(dssi-vst_gui_exe_CXX_SRCS:.cpp=.o) \
$(EXTRA_OBJS)


### dssi-vst-scanner.exe sources and settings

dssi-vst-scanner_exe_MODULE = dssi-vst-scanner.exe
dssi-vst-scanner_exe_APPMODE = gui
dssi-vst-scanner_exe_C_SRCS =
dssi-vst-scanner_exe_CXX_SRCS = dssi-vst-scanner.cpp
dssi-vst-scanner_exe_RC_SRCS =
dssi-vst-scanner_exe_SPEC_SRCS =
dssi-vst-scanner_exe_DLL_PATH = -L$(WINE_DLL_ROOT)
dssi-vst-scanner_exe_DLLS = advapi32 \
comdlg32 \
gdi32 \
kernel32 \
odbc32 \
ole32 \
oleaut32 \
shell32 \
user32 \
winspool
dssi-vst-scanner_exe_LIBRARY_PATH=
dssi-vst-scanner_exe_LIBRARIES =
dssi-vst-scanner_exe_DEPENDS =

dssi-vst-scanner_exe_OBJS = $(dssi-vst-scanner_exe_C_SRCS:.c=.o) \
$(dssi-vst-scanner_exe_CXX_SRCS:.cpp=.o) \
$(EXTRA_OBJS)



### Global source lists

C_SRCS = $(dssi-vst-server_exe_C_SRCS) $(dssi-vst-scanner_exe_C_SRCS) $(dssi-vst_gui_exe_C_SRCS)
CXX_SRCS = $(dssi-vst-server_exe_CXX_SRCS) $(dssi-vst-scanner_exe_CXX_SRCS) $(dssi-vst_gui_exe_CXX_SRCS)
RC_SRCS = $(dssi-vst-server_exe_RC_SRCS) $(dssi-vst-scanner_exe_RC_SRCS) $(dssi-vst_gui_exe_RC_SRCS)
SPEC_SRCS = $(dssi-vst-server_exe_SPEC_SRCS) $(dssi-vst-scanner_exe_SPEC_SRCS) $(dssi-vst_gui_exe_SPEC_SRCS)



### Generic autoconf targets

all: wineapploader $(SUBDIRS) $(DLLS:%=%.so) $(EXES:%=%.so) vstsynth libremoteplugin.a dssi-vst.so

wineapploader: wineapploader.in
sed -e 's,@bindir\@,$(bindir),g' -e 's,@winelibdir\@,.,g' $(SRCDIR)/wineapploader.in >$@ || $(RM) $@

@MAKE_RULES@

install::
_list="$(SUBDIRS)"; for i in $$_list; do (cd $$i; $(MAKE) install) || exit 1; done
_list="$(EXES:%.exe=%)"; for i in $$_list; do $(INSTALL_SCRIPT) $$i $(bindir); done
_list="$(EXES:%=%.so) $(DLLS:%=%.so)"; for i in $$_list; do $(INSTALL_PROGRAM) $$i $(dlldir); done

uninstall::
_list="$(SUBDIRS)"; for i in $$_list; do (cd $$i; $(MAKE) uninstall) || exit 1; done
_list="$(EXES:%.exe=%)"; for i in $$_list; do $(RM) $(bindir)/$$i;done
_list="$(EXES:%=%.so) $(DLLS:%=%.so)"; for i in $$_list; do $(RM) $(dlldir)/$$i;done

clean::
$(RM) wineapploader

distclean: clean
$(RM) config.* configure.lineno Make.rules
$(RM) -r autom4te.cache
find . -name Makefile -exec $(RM) {} \;

### Target specific build rules

$(dssi-vst-server_exe_MODULE).dbg.c: $(dssi-vst-server_exe_C_SRCS) $(dssi-vst-server_exe_CXX_SRCS)
$(LDPATH) $(WINEBUILD) -o $@ --debug -C$(SRCDIR) $(dssi-vst-server_exe_C_SRCS) $(dssi-vst-server_exe_CXX_SRCS)

$(dssi-vst-server_exe_MODULE).spec.c: $(dssi-vst-server_exe_SPEC_SRCS) $(dssi-vst-server_exe_RC_SRCS:.rc=.res) $(dssi-vst-server_exe_OBJS)
$(LDPATH) $(WINEBUILD) -fPIC -o $@ --exe $(dssi-vst-server_exe_MODULE) -m$(dssi-vst-server_exe_APPMODE) $(dssi-vst-server_exe_SPEC_SRCS:%=--spec %) $(dssi-vst-server_exe_RC_SRCS:%.rc=%.res) $(dssi-vst-server_exe_OBJS) $(dssi-vst-server_exe_DLL_PATH) $(WINE_DLL_PATH) $(GLOBAL_DLL_PATH) $(dssi-vst-server_exe_DLLS:%=-l%) $(GLOBAL_DLLS:%=-l%)

$(dssi-vst-server_exe_MODULE).so: $(dssi-vst-server_exe_MODULE).dbg.o $(dssi-vst-server_exe_MODULE).spec.o $(dssi-vst-server_exe_OBJS) $(dssi-vst-server_exe_DEPENDS)
$(LDXXSHARED) $(LDDLLFLAGS) -o $@ $(dssi-vst-server_exe_OBJS) $(dssi-vst-server_exe_MODULE).dbg.o $(dssi-vst-server_exe_MODULE).spec.o $(dssi-vst-server_exe_LIBRARY_PATH) $(ALL_LIBRARY_PATH) $(dssi-vst-server_exe_LIBRARIES:%=-l%) $(ALL_LIBRARIES) $(LIBS)

### Target specific build rules

$(dssi-vst_gui_exe_MODULE).dbg.c: $(dssi-vst_gui_exe_C_SRCS) $(dssi-vst_gui_exe_CXX_SRCS)
$(LDPATH) $(WINEBUILD) -o $@ --debug -C$(SRCDIR) $(dssi-vst_gui_exe_C_SRCS) $(dssi-vst_gui_exe_CXX_SRCS)

$(dssi-vst_gui_exe_MODULE).spec.c: $(dssi-vst_gui_exe_SPEC_SRCS) $(dssi-vst_gui_exe_RC_SRCS:.rc=.res) $(dssi-vst_gui_exe_OBJS)
$(LDPATH) $(WINEBUILD) -fPIC -o $@ --exe $(dssi-vst_gui_exe_MODULE) -m$(dssi-vst_gui_exe_APPMODE) $(dssi-vst_gui_exe_SPEC_SRCS:%=--spec %) $(dssi-vst_gui_exe_RC_SRCS:%.rc=%.res) $(dssi-vst_gui_exe_OBJS) $(dssi-vst_gui_exe_DLL_PATH) $(WINE_DLL_PATH) $(GLOBAL_DLL_PATH) $(dssi-vst_gui_exe_DLLS:%=-l%) $(GLOBAL_DLLS:%=-l%)

$(dssi-vst_gui_exe_MODULE).so: $(dssi-vst_gui_exe_MODULE).dbg.o $(dssi-vst_gui_exe_MODULE).spec.o $(dssi-vst_gui_exe_OBJS) $(dssi-vst_gui_exe_DEPENDS)
$(LDXXSHARED) $(LDDLLFLAGS) -o $@ $(dssi-vst_gui_exe_OBJS) $(dssi-vst_gui_exe_MODULE).dbg.o $(dssi-vst_gui_exe_MODULE).spec.o $(dssi-vst_gui_exe_LIBRARY_PATH) $(ALL_LIBRARY_PATH) $(dssi-vst_gui_exe_LIBRARIES:%=-l%) $(ALL_LIBRARIES) $(LIBS)

### Target specific build rules

$(dssi-vst-scanner_exe_MODULE).dbg.c: $(dssi-vst-scanner_exe_C_SRCS) $(dssi-vst-scanner_exe_CXX_SRCS)
$(LDPATH) $(WINEBUILD) -o $@ --debug -C$(SRCDIR) $(dssi-vst-scanner_exe_C_SRCS) $(dssi-vst-scanner_exe_CXX_SRCS)

$(dssi-vst-scanner_exe_MODULE).spec.c: $(dssi-vst-scanner_exe_SPEC_SRCS) $(dssi-vst-scanner_exe_RC_SRCS:.rc=.res) $(dssi-vst-scanner_exe_OBJS)
$(LDPATH) $(WINEBUILD) -fPIC -o $@ --exe $(dssi-vst-scanner_exe_MODULE) -m$(dssi-vst-scanner_exe_APPMODE) $(dssi-vst-scanner_exe_SPEC_SRCS:%=--spec %) $(dssi-vst-scanner_exe_RC_SRCS:%.rc=%.res) $(dssi-vst-scanner_exe_OBJS) $(dssi-vst-scanner_exe_DLL_PATH) $(WINE_DLL_PATH) $(GLOBAL_DLL_PATH) $(dssi-vst-scanner_exe_DLLS:%=-l%) $(GLOBAL_DLLS:%=-l%)

$(dssi-vst-scanner_exe_MODULE).so: $(dssi-vst-scanner_exe_MODULE).dbg.o $(dssi-vst-scanner_exe_MODULE).spec.o $(dssi-vst-scanner_exe_OBJS) $(dssi-vst-scanner_exe_DEPENDS)
$(LDXXSHARED) $(LDDLLFLAGS) -o $@ $(dssi-vst-scanner_exe_OBJS) $(dssi-vst-scanner_exe_MODULE).dbg.o $(dssi-vst-scanner_exe_MODULE).spec.o $(dssi-vst-scanner_exe_LIBRARY_PATH) $(ALL_LIBRARY_PATH) $(dssi-vst-scanner_exe_LIBRARIES:%=-l%) $(ALL_LIBRARIES) $(LIBS)


### Client application
vstsynth: vstsynth.cpp remoteplugin.h remotepluginclient.h remotevstclient.o libremoteplugin.a
g++ -g3 -I/usr/local/include -L/usr/local/lib -Wall vstsynth.cpp remotevstclient.o -o vstsynth -L. -lremoteplugin -ljack -lasound

libremoteplugin.a: remotepluginclient.o remotepluginserver.o rdwrops.o
ar r $@ $^

remotepluginclient.o: remotepluginclient.cpp remotepluginclient.h remoteplugin.h
g++ -g3 -Wall remotepluginclient.cpp -c

remotevstclient.o: remotevstclient.cpp remotevstclient.h remotepluginclient.h remoteplugin.h
g++ -g3 -Wall remotevstclient.cpp -c

remotepluginserver.o: remotepluginserver.cpp remotepluginserver.h remoteplugin.h
g++ -g3 -Wall remotepluginserver.cpp -c

dssi-vst-server.o: remoteplugin.h remotepluginserver.h libremoteplugin.a
dssi-vst_gui.o: remoteplugin.h remotepluginserver.h libremoteplugin.a
dssi-vst-scanner.o: remoteplugin.h remotepluginserver.h libremoteplugin.a

dssi-vst.so: remoteplugin.h remotepluginclient.h libremoteplugin.a dssi-vst.cpp remotevstclient.o
g++ -shared -Wl,-Bsymbolic -g3 -Wall -o dssi-vst.so dssi-vst.cpp remotevstclient.o -L. -lremoteplugin
Loading

0 comments on commit bfc2d53

Please sign in to comment.