mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
83 lines
2.0 KiB
Makefile
83 lines
2.0 KiB
Makefile
### Do not edit -- Generated by 'configure --with-whatever' from Makefile.in
|
|
### STK ragamatic Makefile - for various flavors of unix
|
|
|
|
PROGRAMS =
|
|
RM = /bin/rm
|
|
SRC_PATH = ../../src
|
|
OBJECT_PATH = @object_path@
|
|
vpath %.o $(OBJECT_PATH)
|
|
|
|
OBJECTS = Stk.o Noise.o ADSR.o \
|
|
DelayA.o Delay.o \
|
|
OnePole.o OneZero.o Skini.o \
|
|
Tabla.o Sitar.o \
|
|
Drone.o VoicDrum.o FileRead.o FileWvIn.o \
|
|
JCRev.o Messager.o
|
|
|
|
INCLUDE = @include@
|
|
ifeq ($(strip $(INCLUDE)), )
|
|
INCLUDE = ../../include
|
|
endif
|
|
vpath %.h $(INCLUDE)
|
|
|
|
CC = @CXX@
|
|
DEFS = @CPPFLAGS@
|
|
DEFS += @byte_order@
|
|
CFLAGS = @CXXFLAGS@
|
|
CFLAGS += -I$(INCLUDE) -I$(INCLUDE)/../src/include
|
|
LIBRARY = @LIBS@
|
|
|
|
REALTIME = @realtime@
|
|
ifeq ($(REALTIME),yes)
|
|
PROGRAMS = ragamat
|
|
OBJECTS += RtMidi.o RtAudio.o Thread.o Mutex.o Socket.o TcpServer.o @objects@
|
|
endif
|
|
|
|
RAWWAVES = @rawwaves@
|
|
ifeq ($(strip $(RAWWAVES)), )
|
|
RAWWAVES = ../../rawwaves/
|
|
endif
|
|
DEFS += -DRAWWAVE_PATH=\"$(RAWWAVES)\"
|
|
|
|
%.o : $(SRC_PATH)/%.cpp $(OBJECT_PATH)/.placeholder
|
|
$(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@
|
|
|
|
%.o : ../../src/include/%.cpp $(OBJECT_PATH)/.placeholder
|
|
$(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@
|
|
|
|
all : $(PROGRAMS)
|
|
|
|
$(OBJECT_PATH)/.placeholder:
|
|
mkdir -vp $(OBJECT_PATH)
|
|
touch $(OBJECT_PATH)/.placeholder
|
|
|
|
ragamat: ragamat.cpp $(OBJECTS)
|
|
$(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o ragamat ragamat.cpp $(OBJECT_PATH)/*.o $(LIBRARY)
|
|
|
|
libragamat: ragamat.cpp Tabla.cpp Drone.cpp VoicDrum.cpp
|
|
$(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o ragamat Tabla.cpp Drone.cpp VoicDrum.cpp ragamat.cpp -L../../src -lstk $(LIBRARY)
|
|
|
|
$(OBJECTS) : Stk.h
|
|
|
|
clean :
|
|
$(RM) -f $(OBJECT_PATH)/*.o
|
|
$(RM) -f $(PROGRAMS) *.exe
|
|
$(RM) -fR *~ *.dSYM
|
|
|
|
distclean: clean
|
|
$(RM) Makefile
|
|
|
|
strip :
|
|
strip $(PROGRAMS)
|
|
|
|
# Project specific objects:
|
|
|
|
Tabla.o: Tabla.cpp
|
|
$(CC) $(CFLAGS) $(DEFS) -c Tabla.cpp -o $(OBJECT_PATH)/$@
|
|
|
|
Drone.o: Drone.cpp
|
|
$(CC) $(CFLAGS) $(DEFS) -c Drone.cpp -o $(OBJECT_PATH)/$@
|
|
|
|
VoicDrum.o: VoicDrum.cpp
|
|
$(CC) $(CFLAGS) $(DEFS) -c VoicDrum.cpp -o $(OBJECT_PATH)/$@
|