Commit 275ba5a8 authored by thomas's avatar thomas
Browse files

no message


git-svn-id: https://svn.grrrr.org/ext/trunk@231 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent 0c25fb3c
@echo --- Building flext with BorlandC++ ---
make -f makefile.pd-bcc
make -f makefile.pd-cygwin
make -f makefile.pd-linux
@echo --- Building flext with MS Visual C++ ---
nmake -f makefile.msvc
# flext - C++ layer for Max/MSP and pd (pure data) externals
# Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net)
#
# ----- for internal use ----------------------
#
# paths to adjust
MSVCPATH="c:\programme\prog\microsoft visual studio\VC98" ### EDIT! ##
PDPATH=c:\programme\audio\pd ### EDIT! ##
# includes
INCPATH=/I$(MSVCPATH)\include /I$(PDPATH)\src /Isource
# compiler definitions and flags
DEFS=-DPD -DNT
CFLAGS= /G6 /GD /GR /Ox
TARGET=pdwin # appendix to lib name
# the rest can stay untouched
# ----------------------------------------------
# all the source files from the package
SRCS=flbase.cpp flext.cpp flbuf.cpp fldsp.cpp fllib.cpp flxlet.cpp flsetup.cpp flutil.cpp flatom.cpp
HDRS=flstdc.h flbase.h flclass.h fldefs.h flext.h
IHDRS=flinternal.h
!ifdef FLEXT_THREADS
DEFS=$(DEFS) -DFLEXT_THREADS
!endif
#default target
all: $(OUTPATH)\$(NAME)-$(TARGET).lib
# remove build
clean:
-del /s /q $(OUTPATH) > nul
rmdir $(OUTPATH)
# -----------------------------------------------
OBJS= $(SRCS:.cpp=.obj)
{source\}.cpp.obj:
@-if not exist $(OUTPATH) mkdir $(OUTPATH)
cl /c $(CFLAGS) $(DEFS) $(INCPATH) /Fo$(OUTPATH)\$@ $<
$(OUTPATH)\$(NAME)-$(TARGET).lib: $(OBJS)
@cd $(OUTPATH)
lib /OUT:$(@F) $**
@cd ..
# flext - C++ layer for Max/MSP and pd (pure data) externals
# Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net)
#
# Makefile for BorlandC++
#
# usage: make -f makefile.bcc
#
# ---------------------------------------------
#
# note: no threading support for BorlandC++
#
# ---------------------------------------------
NAME=flext
TARGET=pdwin # appendix to lib name
# where to put the build
OUTPATH=.\bcc
# paths
BCCPATH=c:\programme\prog\bcc55 ### EDIT! ##
PDPATH=c:\programme\audio\pd ### EDIT! ##
# includes
INCPATH=-I$(BCCPATH)\include -I$(PDPATH)\src -Isource
# compiler definitions and flags
DEFS=-DPD -DNT
CFLAGS=-6 -O2 -OS -ff -tWD
# the rest can stay untouched
# ----------------------------------------------
# all the source files from the package
SRCS=flbase.cpp flext.cpp flbuf.cpp fldsp.cpp fllib.cpp flxlet.cpp flsetup.cpp flutil.cpp flatom.cpp
HDRS=flstdc.h flbase.h flclass.h fldefs.h flext.h
IHDRS=flinternal.h
#default target
all: $(OUTPATH)\$(NAME)-$(TARGET).lib
# remove build
clean:
-del /s /q $(OUTPATH) > nul
rmdir $(OUTPATH)
# -----------------------------------------------
OBJS= $(SRCS:.cpp=.obj)
.PATH.obj=$(OUTPATH)
{source}.cpp.obj:
bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(OUTPATH) $<
$(OUTPATH):
@if not exist $< mkdir $<
$(OUTPATH)\$(NAME)-$(TARGET).lib:: $(OUTPATH)
$(OUTPATH)\$(NAME)-$(TARGET).lib:: $(OBJS)
@-del "$<"
tlib "$<" +$(**: = +)
# flext - C++ layer for Max/MSP and pd (pure data) externals
# Copyright (c) 2001,2002 Thomas Grill (xovo@gmx.net)
#
# Makefile for MSVC++
#
#
# IMPORTANT: Adjust all paths in makefile-inc.msvc
#
# usage: make -f makefile.msvc
#
# ---------------------------------------------
all: flext flext_t
flext:
nmake /f makefile-inc.msvc NAME=$* OUTPATH=".\msvc"
flext_t:
nmake /f makefile-inc.msvc NAME=$* OUTPATH=".\msvc-t" FLEXT_THREADS=
Markdown is supported
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