[PD-cvs] externals/ggee makefile,NONE,1.1 makefile.sub,NONE,1.1
Guenter Geiger
ggeiger at users.sourceforge.net
Fri Jul 1 10:13:37 CEST 2005
Update of /cvsroot/pure-data/externals/ggee
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4351
Added Files:
makefile makefile.sub
Log Message:
added
--- NEW FILE: makefile.sub ---
prefix=$(DESTDIR)/usr
EXTERNALS = $(shell ls *.c)
STRIP = strip --strip-unneeded -R .note -R .comment
linux: $(EXTERNALS:.c=.pd_linux)
win: $(EXTERNALS:.c=.dll)
osx: $(EXTERNALS:.c=.pd_darwin)
.SUFFIXES: .pd_linux .pd_darwin .dll
WARNFLAGS = -Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
CFLAGS + = -fPIC -DPD $(WARNFLAGS)
INCLUDES = -I.. -I../include
# the linux compilation target
%.pd_linux: %.c
$(CC) $(CFLAGS) $(INCLUDES) -o "$*.o" -c $*.c
gcc -Wl,-export_dynamic -shared -o "$*.pd_linux" "$*.o" -lc -lm
chmod a-x "$*.pd_linux"
rm -f "$*.o"
# the windows mingw target
%.dll: ../src/%.c
$(CC) -mms-bitfields $(CFLAGS) $(DEFINES) $(INCLUDE) -o "$*.o" -c "../src/$*.c"
gcc -shared -o "$*.dll" "$*.o" $(PDPATH)/bin/pd.dll
strip:
$(STRIP) *.pd_linux
clean:
-rm *.pd_linux *~ *.dll *.pd_darwin *.o
--- NEW FILE: makefile ---
VERSION=$(shell cat VERSION)
compile:
make -f ../makefile.sub -C control
make -f ../makefile.sub -C filters
make -f ../makefile.sub -C gui
make -f ../makefile.sub -C signal
make -f ../makefile.sub -C experimental
clean:
rm -r ggee-$(VERSION)
make -f ../makefile.sub -C control clean
make -f ../makefile.sub -C filters clean
make -f ../makefile.sub -C gui clean
make -f ../makefile.sub -C signal clean
make -f ../makefile.sub -C experimental clean
package:
-mkdir ggee-$(VERSION)
-cp `find . -name "*.pd_linux"` ggee-$(VERSION)
-cp `find . -name "*.pd_darwin"` ggee-$(VERSION)
-cp `find . -name "*.dll"` ggee-$(VERSION)
cp `find . -name "*help.pd"` ggee-$(VERSION)
More information about the Pd-cvs
mailing list