mirror of
https://github.com/thestk/stk
synced 2026-01-19 23:51:51 +00:00
Version 3.2
This commit is contained in:
committed by
Stephen Sinclair
parent
4b6500d3de
commit
3f126af4e5
66
projects/ragamatic/Makefile
Normal file
66
projects/ragamatic/Makefile
Normal file
@@ -0,0 +1,66 @@
|
||||
# STK Makefile - Global version for Unix systems which have GNU
|
||||
# Makefile utilities installed. If this Makefile does not work on
|
||||
# your system, try using the platform specific Makefiles (.sgi,
|
||||
# .next, and .linux).
|
||||
|
||||
OS = $(shell uname)
|
||||
|
||||
# The following definition indicates the relative location of
|
||||
# the core STK classes.
|
||||
STK_PATH = ../../src/
|
||||
|
||||
O_FILES = Object.o Envelope.o ADSR.o Noise.o \
|
||||
Filter.o DLineA.o DLineL.o DLineN.o \
|
||||
OnePole.o OneZero.o DCBlock.o SKINI11.o \
|
||||
ByteSwap.o Tabla.o Instrmnt.o Sitar1.o \
|
||||
StrDrone.o VoicDrum.o WvOut.o WvIn.o RawWvIn.o \
|
||||
RtAudio.o RtWvOut.o RtMidi.o Reverb.o \
|
||||
JCRev.o Controller.o StkError.o
|
||||
|
||||
RM = /bin/rm
|
||||
|
||||
ifeq ($(OS),IRIX) # These are for SGI
|
||||
INSTR = ragamat
|
||||
CC = CC -O2 -D__OS_IRIX_ # -g -fullwarn -D__SGI_CC__
|
||||
LIBRARY = -L/usr/sgitcl/lib -laudio -lmd -lm -lpthread
|
||||
INCLUDE = -I../../include
|
||||
endif
|
||||
|
||||
ifeq ($(OS),Linux) # These are for Linux
|
||||
INSTR = ragamat
|
||||
CC = g++ -O3 -Wall -D__OS_Linux_ # -g
|
||||
LIBRARY = -lpthread -lm #-lasound
|
||||
INCLUDE = -I../../include
|
||||
endif
|
||||
|
||||
%.o : $(STK_PATH)%.cpp
|
||||
$(CC) $(INCLUDE) -c $(<) -o $@
|
||||
|
||||
all: $(INSTR)
|
||||
|
||||
ragamat: ragamat.cpp $(O_FILES)
|
||||
$(CC) $(INCLUDE) -o ragamat ragamat.cpp $(O_FILES) $(LIBRARY)
|
||||
|
||||
clean :
|
||||
rm *.o
|
||||
rm $(INSTR)
|
||||
|
||||
cleanIns :
|
||||
rm $(INSTR)
|
||||
|
||||
strip :
|
||||
strip $(INSTR)
|
||||
|
||||
# $(O_FILES) :
|
||||
|
||||
Tabla.o: Tabla.cpp
|
||||
$(CC) $(INCLUDE) -c Tabla.cpp
|
||||
|
||||
Sitar1.o: Sitar1.cpp
|
||||
$(CC) $(INCLUDE) -c Sitar1.cpp
|
||||
|
||||
StrDrone.o: StrDrone.cpp
|
||||
$(CC) $(INCLUDE) -c StrDrone.cpp
|
||||
|
||||
VoicDrum.o: VoicDrum.cpp
|
||||
$(CC) $(INCLUDE) -c VoicDrum.cpp
|
||||
Reference in New Issue
Block a user