diff options
author | carmen rocco <ix9@users.sourceforge.net> | 2005-03-08 21:20:35 +0000 |
---|---|---|
committer | carmen rocco <ix9@users.sourceforge.net> | 2005-03-08 21:20:35 +0000 |
commit | 77c7a463710ee0a5f95630c07da304fd0d296d3f (patch) | |
tree | 6b7ebd8c6926ab65d099cfe62239a189cb07edaf /Makefile |
popen()svn2git-root
svn path=/trunk/externals/control/popen/; revision=2606
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..28d3699 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +prefix=/usr/lib/pd + +EXTERNALS = popen.c + +all: $(EXTERNALS:.c=.pd_linux) + +.SUFFIXES: .pd_linux + +CFLAGS = -g -DUNIX -Wall -W -Wshadow -Wstrict-prototypes \ + -Wno-unused -Wno-parentheses -Wno-switch -fPIC + +INCLUDE = -I. -I.. -I$(prefix)/src + +%.pd_linux: %.c + $(CC) $(CFLAGS) $(INCLUDE) -o "$*.o" -c "$*.c" + gcc -shared -o "$*.pd_linux" "$*.o" + +clean: + -rm *.pd_linux *.o + +install-doc: + @test -d $(prefix)/doc/5.reference || mkdir -p $(prefix)/doc/5.reference + install *.pd $(prefix)/doc/5.reference + +install: install-doc + @test -d $(prefix)/extra || mkdir -p $(prefix)/extra + install *.pd_linux $(prefix)/extra |