diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2004-02-22 03:34:00 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2004-02-22 03:34:00 +0000 |
commit | 74e28b058aaf629d94ad7d44a9add3062e89441d (patch) | |
tree | e2a99c9f85f48108d1e1bc98b754143d953adb22 /externals/grill/flext/makefile.pd-cygwin | |
parent | cc4ac0dd18e12e0f7e1d06eeb5133cb018aa0ebe (diff) |
""
svn path=/trunk/; revision=1326
Diffstat (limited to 'externals/grill/flext/makefile.pd-cygwin')
-rw-r--r-- | externals/grill/flext/makefile.pd-cygwin | 52 |
1 files changed, 32 insertions, 20 deletions
diff --git a/externals/grill/flext/makefile.pd-cygwin b/externals/grill/flext/makefile.pd-cygwin index 5c7d5ddf..85b5d321 100644 --- a/externals/grill/flext/makefile.pd-cygwin +++ b/externals/grill/flext/makefile.pd-cygwin @@ -1,5 +1,5 @@ # flext - C++ layer for Max/MSP and pd (pure data) externals -# Copyright (c) 2001-2003 Thomas Grill (xovo@gmx.net) +# Copyright (c) 2001-2004 Thomas Grill (xovo@gmx.net) # # Makefile for gcc @ cygwin # @@ -17,12 +17,13 @@ include $(CONFIG) # compiler+linker stuff -INCLUDES=/usr/include $(PDPATH)/src +INCLUDES=$(PDPATH)/src # /usr/include FLAGS=-DFLEXT_SYS=2 $(UFLAGS) CFLAGS=-O2 -CFLAGS_D=-g +CFLAGS_D=-DFLEXT_DEBUG -g CFLAGS_T=-DFLEXT_THREADS +CFLAGS_S=-DFLEXT_SHARED LIBS= INSTDIR=$(PDPATH)/flext @@ -54,8 +55,13 @@ TARGET=$(TARGDIR)/$(NAME)-pdwin.lib TARGET_D=$(TARGDIR)/$(NAME)_d-pdwin.lib TARGET_T=$(TARGDIR)/$(NAME)_t-pdwin.lib TARGET_TD=$(TARGDIR)/$(NAME)_td-pdwin.lib +TARGET_S=$(TARGDIR)/$(NAME).dll +TARGET_SD=$(TARGDIR)/$(NAME)_d.dll -all: $(TARGDIR) $(TARGET) $(TARGET_D) $(TARGET_T) $(TARGET_TD) +TARGETS=$(TARGET) $(TARGET_D) $(TARGET_T) $(TARGET_TD) # $(TARGET_S) $(TARGET_SD) + + +all: $(TARGDIR) $(TARGETS) $(TARGDIR): -mkdir $(TARGDIR) @@ -75,25 +81,41 @@ $(TARGDIR)/%.to : $(SRCDIR)/%.cpp $(TARGDIR)/%.tdo : $(SRCDIR)/%.cpp $(CXX) -c $(CFLAGS_D) $(CFLAGS_T) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(SRCDIR)) $< -o $@ +$(TARGDIR)/%.so : $(SRCDIR)/%.cpp + $(CXX) -c $(CFLAGS) $(CFLAGS_S) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(SRCDIR)) $< -o $@ + +$(TARGDIR)/%.sdo : $(SRCDIR)/%.cpp + $(CXX) -c $(CFLAGS_D) $(CFLAGS_S) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(SRCDIR)) $< -o $@ + + $(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) - ar rc $@ $^ + $(AR) rc $@ $^ chmod 755 $@ $(TARGET_D) : $(patsubst %.cpp,$(TARGDIR)/%.do,$(SRCS)) - ar rc $@ $^ + $(AR) rc $@ $^ chmod 755 $@ $(TARGET_T) : $(patsubst %.cpp,$(TARGDIR)/%.to,$(SRCS)) - ar rc $@ $^ + $(AR) rc $@ $^ chmod 755 $@ $(TARGET_TD) : $(patsubst %.cpp,$(TARGDIR)/%.tdo,$(SRCS)) - ar rc $@ $^ + $(AR) rc $@ $^ chmod 755 $@ +$(TARGET_S) : $(patsubst %.cpp,$(TARGDIR)/%.so,$(SRCS)) + $(CXX) -o $@ $^ + chmod 755 $@ + +$(TARGET_SD) : $(patsubst %.cpp,$(TARGDIR)/%.sdo,$(SRCS)) + $(CXX) -o $@ $^ + chmod 755 $@ + + .PHONY: clean install clean: - rm -f $(TARGDIR)/*.o $(TARGET) $(TARGET_D) + rm -f $(TARGDIR)/*.o $(TARGETS) ifdef INSTDIR $(INSTDIR): @@ -102,15 +124,5 @@ $(INSTDIR): install:: $(INSTDIR) endif -install:: $(TARGET) $(TARGET_D) $(TARGET_T) $(TARGET_TD) $(patsubst %,$(SRCDIR)/%,$(HDRS)) +install:: $(TARGETS) $(patsubst %,$(SRCDIR)/%,$(HDRS)) cp $^ $(INSTDIR) - - - - - - - - - - |