Update of /cvsroot/pure-data/externals/loaders/hexloader In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10541
Modified Files: Makefile hexloader.c Log Message: ...
Index: Makefile =================================================================== RCS file: /cvsroot/pure-data/externals/loaders/hexloader/Makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile 19 Apr 2007 13:31:19 -0000 1.1 --- Makefile 19 Apr 2007 13:40:34 -0000 1.2 *************** *** 14,17 **** --- 14,20 ---- EXTENSION=$(MAKECMDGOALS)
+ + DEFINES=-DPD + # if no filename-extension is supplied by the user # try to guess one, based on what "uname" tells us *************** *** 19,28 **** ifeq ($(UNAME),Linux) DEFAULTEXTENSION= pd_linux else ifeq ($(UNAME),Darwin) DEFAULTEXTENSION= pd_darwin else ifeq (MINGW,$(findstring MINGW,$(UNAME))) ! DEFAULTEXTENSION= pd_nt else ifeq ($(UNAME),IRIX) --- 22,33 ---- ifeq ($(UNAME),Linux) DEFAULTEXTENSION= pd_linux + DEFINES+=-DDL_OPEN else ifeq ($(UNAME),Darwin) DEFAULTEXTENSION= pd_darwin + DEFINES+=-DDL_OPEN else ifeq (MINGW,$(findstring MINGW,$(UNAME))) ! DEFAULTEXTENSION=pd_nt else ifeq ($(UNAME),IRIX) *************** *** 30,35 **** --- 35,42 ---- ifeq (6.,$(findstring 6.,$(UNAMEV))) DEFAULTEXTENSION= pd_irix6 + DEFINES+=-DDL_OPEN else DEFAULTEXTENSION= pd_irix5 + DEFINES+=-DDL_OPEN endif else *************** *** 62,66 **** pd_linux: $(TARGETS)
! LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC \ -Wall -W -Wshadow -Wstrict-prototypes -Werror \ -Wno-unused -Wno-parentheses -Wno-switch --- 69,73 ---- pd_linux: $(TARGETS)
! LINUXCFLAGS = $(DEFINES) -O2 -funroll-loops -fomit-frame-pointer -fPIC \ -Wall -W -Wshadow -Wstrict-prototypes -Werror \ -Wno-unused -Wno-parentheses -Wno-switch *************** *** 80,84 **** pd_darwin: $(TARGETS)
! DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \ -Wno-unused -Wno-parentheses -Wno-switch
--- 87,91 ---- pd_darwin: $(TARGETS)
! DARWINCFLAGS = $(DEFINES) -O2 -Wall -W -Wshadow -Wstrict-prototypes \ -Wno-unused -Wno-parentheses -Wno-switch
*************** *** 94,98 **** pd_irix5: $(TARGETS)
! SGICFLAGS5 = -o32 -DPD -DSGI -O2
SGIINCLUDE = -I$(PDSRCDIR) --- 101,105 ---- pd_irix5: $(TARGETS)
! SGICFLAGS5 = -o32 $(DEFINES) -DSGI -O2
SGIINCLUDE = -I$(PDSRCDIR) *************** *** 109,113 **** pd_irix6: $(TARGETS)
! SGICFLAGS6 = -DPD -DSGI -n32 \ -OPT:roundoff=3 -OPT:IEEE_arithmetic=3 -OPT:cray_ivdep=true \ -Ofast=ip32 --- 116,120 ---- pd_irix6: $(TARGETS)
! SGICFLAGS6 = $(DEFINES) -DSGI -n32 \ -OPT:roundoff=3 -OPT:IEEE_arithmetic=3 -OPT:cray_ivdep=true \ -Ofast=ip32 *************** *** 142,146 **** pd_nt: $(TARGETS)
! MINGWCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \ -Wall -W -Wshadow -Wstrict-prototypes -Werror \ -Wno-unused -Wno-parentheses -Wno-switch -mms-bitfields --- 149,153 ---- pd_nt: $(TARGETS)
! MINGWCFLAGS = $(DEFINES) -O2 -funroll-loops -fomit-frame-pointer \ -Wall -W -Wshadow -Wstrict-prototypes -Werror \ -Wno-unused -Wno-parentheses -Wno-switch -mms-bitfields
Index: hexloader.c =================================================================== RCS file: /cvsroot/pure-data/externals/loaders/hexloader/hexloader.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** hexloader.c 19 Apr 2007 13:31:19 -0000 1.1 --- hexloader.c 19 Apr 2007 13:40:34 -0000 1.2 *************** *** 1,8 **** #ifdef __WIN32__ # define MSW #endif
- #define DL_OPEN - #include "m_pd.h" #include "s_stuff.h" --- 1,20 ---- + /* Copyright (c) 2007 IOhannes m zmölnig @ IEM + * For information on usage and redistribution, and for a DISCLAIMER OF ALL + * WARRANTIES, see the file, "LICENSE.txt," that comes with Pd. + */ + + /* + * this code adds an external "loader" to Miller S. Puckette's "pure data", + * which allows the loading of libraries/externals with special characters + * in the classname + * + * the infrastructure of this file is based on hcsteiner's "libdir" loader + */ + + #ifdef __WIN32__ # define MSW #endif
#include "m_pd.h" #include "s_stuff.h"