Commit b1e9565e authored by thomas's avatar thomas
Browse files

no message


git-svn-id: https://svn.grrrr.org/ext/trunk@298 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent c3d096f7
......@@ -5,6 +5,9 @@
# where are the PD header files?
PDPATH=/usr/local/pd/src
# where is the SndObj include directory? (leave blank to disable SndObj support)
SNDOBJ=/usr/src/sndobj/include
# where should flext libraries be built?
TARGDIR=./pd-darwin
......
# flext - C++ layer for Max/MSP and pd (pure data) externals
# Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net)
#
# Makefile for gcc @ linux
# Makefile for gcc @ darwin
#
# usage:
# to build run "make -f makefile.pd-linux"
# to install (as root), do "make -f makefile.pd-linux install"
# to build run "make -f makefile.pd-darwin"
# to install (as root), do "make -f makefile.pd-darwin install"
#
include config-pd-darwin.txt
# compiler+linker stuff
INCLUDES=$(PDPATH)
INCLUDES=$(PDPATH) $(SNDOBJ)
FLAGS=-DPD -Dunix
CFLAGS=-DMACOSX -DPD -Dunix -O2 -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
......@@ -32,6 +32,14 @@ flutil.cpp flatom.cpp flthr.cpp
HDRS=flstdc.h flbase.h flclass.h fldefs.h flext.h flthr.h fldsp.h flinternal.h
IHDRS=
ifdef SNDOBJ
_SRCS=$(SRCS) flsndobj.cpp
_HDRS=$(HDRS) flsndobj.h
else
_SRCS=$(SRCS)
_HDRS=$(HDRS)
endif
MAKEFILE=makefile.pd-darwin
TARGET=$(TARGDIR)/$(NAME).a
TARGET_D=$(TARGDIR)/$(NAME)_d.a
......@@ -43,7 +51,7 @@ all: $(TARGDIR) $(TARGET) $(TARGET_D) $(TARGET_T) $(TARGET_TD)
$(TARGDIR):
mkdir $(TARGDIR)
$(patsubst %,source/%,$(SRCS)): $(patsubst %,source/%,$(HDRS)) $(patsubst %,source/%,$(IHDRS)) $(MAKEFILE)
$(patsubst %,source/%,$(_SRCS)): $(patsubst %,source/%,$(HDRS)) $(patsubst %,source/%,$(IHDRS)) $(MAKEFILE)
touch $@
$(TARGDIR)/%.o : source/%.cpp
......@@ -58,22 +66,22 @@ $(TARGDIR)/%.to : source/%.cpp
$(TARGDIR)/%.tdo : source/%.cpp
$(CXX) -c $(CFLAGS_D) $(CFLAGS_T) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) source) $< -o $@
$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS))
$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(_SRCS))
ar rc $@ $^
ranlib $@
chmod 755 $@
$(TARGET_D) : $(patsubst %.cpp,$(TARGDIR)/%.do,$(SRCS))
$(TARGET_D) : $(patsubst %.cpp,$(TARGDIR)/%.do,$(_SRCS))
ar rc $@ $^
ranlib $@
chmod 755 $@
$(TARGET_T) : $(patsubst %.cpp,$(TARGDIR)/%.to,$(SRCS))
$(TARGET_T) : $(patsubst %.cpp,$(TARGDIR)/%.to,$(_SRCS))
ar rc $@ $^
ranlib $@
chmod 755 $@
$(TARGET_TD) : $(patsubst %.cpp,$(TARGDIR)/%.tdo,$(SRCS))
$(TARGET_TD) : $(patsubst %.cpp,$(TARGDIR)/%.tdo,$(_SRCS))
ar rc $@ $^
ranlib $@
chmod 755 $@
......@@ -88,7 +96,7 @@ $(INSTDIR):
install:: $(INSTDIR)
install:: $(TARGET) $(TARGET_D) $(TARGET_T) $(TARGET_TD) $(patsubst %,source/%,$(HDRS))
install:: $(TARGET) $(TARGET_D) $(TARGET_T) $(TARGET_TD) $(patsubst %,source/%,$(_HDRS))
cp $^ $(INSTDIR)
# chmod 755 $(patsubst %,$(INSTDIR)/%,$(notdir $^))
# chgrp admin $(patsubst %,$(INSTDIR)/%,$(notdir $^))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment