From 2c2ce6c91be9de8ea5030551619ff9ffa7615f25 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 13 May 2010 16:19:03 +0000 Subject: moved Makefile to prepare for template Makefile svn path=/trunk/externals/bassemu~/; revision=13525 --- Makefile | 66 ------------------------------------------------------------- Makefile.nt | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 66 deletions(-) delete mode 100644 Makefile create mode 100644 Makefile.nt diff --git a/Makefile b/Makefile deleted file mode 100644 index f02e45e..0000000 --- a/Makefile +++ /dev/null @@ -1,66 +0,0 @@ -NAME=bassemu~ -CSYM=bassemu - -current: pd_linux - -# ----------------------- NT ----------------------- - -pd_nt: $(NAME).dll - -.SUFFIXES: .dll - -VC="C:\Programme\Microsoft Platform SDK" -VCC="C:\Programme\Microsoft Visual Studio 8" -PDPATH="C:\Programme\pd" -PDNTCFLAGS = /W3 /WX /DNT /DPD /nologo - - -PDNTINCLUDE = /I. /I$(PDPATH)\tcl\include /I$(PDPATH)\src /I$(VC)\include /I$(LIBUSBPATH)\include - -PDNTLDIR = $(VC)\lib -# --- PDNTLIB = $(PDNTLDIR)\libc.lib \ -# --- PDNTLIB = $(PDNTLDIR)\oldnames.lib \ -PDNTLIB = $(PDNTLDIR)\uuid.lib \ - $(PDPATH)\bin\pd.lib \ - $(PDPATH)\bin\pthreadVC.lib - -.c.dll: - cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c $*.c - link /dll /export:$(CSYM)_setup $*.obj $(PDNTLIB) - -# ----------------------- LINUX i386 ----------------------- - -pd_linux: $(NAME).pd_linux - -.SUFFIXES: .pd_linux - -LINUXCFLAGS = -DPD -O3 -funroll-loops -Wall -fomit-frame-pointer -fPIC \ - -Wall -W -Wshadow -Wstrict-prototypes \ - -Wno-unused -Wno-parentheses -Wno-switch $(CFLAGS) - -LINUXINCLUDE = -I../../src - -.c.pd_linux: - $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c - ld --export-dynamic -shared -o $*.pd_linux $*.o -lc -lm - strip --strip-unneeded $*.pd_linux - rm -f $*.o - -# ----------------------- Mac OSX ----------------------- - -pd_darwin: $(NAME).pd_darwin - -.SUFFIXES: .pd_darwin - -DARWINCFLAGS = -DPD -O3 -funroll-loops -Wall -W -Wshadow -Wstrict-prototypes \ - -Wno-unused -Wno-parentheses -Wno-switch - -.c.pd_darwin: - $(CC) $(DARWINCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c - $(CC) -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $*.o - rm -f $*.o - -# ---------------------------------------------------------- - -clean: - rm -f *.o *.pd_* so_locations diff --git a/Makefile.nt b/Makefile.nt new file mode 100644 index 0000000..f02e45e --- /dev/null +++ b/Makefile.nt @@ -0,0 +1,66 @@ +NAME=bassemu~ +CSYM=bassemu + +current: pd_linux + +# ----------------------- NT ----------------------- + +pd_nt: $(NAME).dll + +.SUFFIXES: .dll + +VC="C:\Programme\Microsoft Platform SDK" +VCC="C:\Programme\Microsoft Visual Studio 8" +PDPATH="C:\Programme\pd" +PDNTCFLAGS = /W3 /WX /DNT /DPD /nologo + + +PDNTINCLUDE = /I. /I$(PDPATH)\tcl\include /I$(PDPATH)\src /I$(VC)\include /I$(LIBUSBPATH)\include + +PDNTLDIR = $(VC)\lib +# --- PDNTLIB = $(PDNTLDIR)\libc.lib \ +# --- PDNTLIB = $(PDNTLDIR)\oldnames.lib \ +PDNTLIB = $(PDNTLDIR)\uuid.lib \ + $(PDPATH)\bin\pd.lib \ + $(PDPATH)\bin\pthreadVC.lib + +.c.dll: + cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c $*.c + link /dll /export:$(CSYM)_setup $*.obj $(PDNTLIB) + +# ----------------------- LINUX i386 ----------------------- + +pd_linux: $(NAME).pd_linux + +.SUFFIXES: .pd_linux + +LINUXCFLAGS = -DPD -O3 -funroll-loops -Wall -fomit-frame-pointer -fPIC \ + -Wall -W -Wshadow -Wstrict-prototypes \ + -Wno-unused -Wno-parentheses -Wno-switch $(CFLAGS) + +LINUXINCLUDE = -I../../src + +.c.pd_linux: + $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c + ld --export-dynamic -shared -o $*.pd_linux $*.o -lc -lm + strip --strip-unneeded $*.pd_linux + rm -f $*.o + +# ----------------------- Mac OSX ----------------------- + +pd_darwin: $(NAME).pd_darwin + +.SUFFIXES: .pd_darwin + +DARWINCFLAGS = -DPD -O3 -funroll-loops -Wall -W -Wshadow -Wstrict-prototypes \ + -Wno-unused -Wno-parentheses -Wno-switch + +.c.pd_darwin: + $(CC) $(DARWINCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c + $(CC) -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $*.o + rm -f $*.o + +# ---------------------------------------------------------- + +clean: + rm -f *.o *.pd_* so_locations -- cgit v1.2.1