This GitLab instance reached the end of its service life. It won't be possible to create new users or projects.

Please read the deprecation notice for more information concerning the deprecation timeline

Visit migration.git.tu-berlin.de (internal network only) to import your old projects to the new GitLab platform 📥

Commit 929bd513 by Jonas Margraf

reworked Makefile for cleaner directory structure that allows better git usage

parent b7e35a80
!*.* !*.*
examples/*/obj/
.bash_history .bash_history
.bash_logout .bash_logout
.bashrc .bashrc
...@@ -16,10 +18,9 @@ gain.pd ...@@ -16,10 +18,9 @@ gain.pd
liblo/ liblo/
wav/ wav/
# *
* # *~
*~ # *.o
*.o
*html/ *html/
*latex/ *latex/
# define the compiler EXECUTABLE = gain_example
CC = g++
# path(s) to include files # path(s) to include files
CFLAGS = -I. CFLAGS = -std=c++11 -Wall -I.
# libraries to link # libraries to link
LDFLAGS = -ljack -llo -lyaml-cpp LDFLAGS = -ljack -llo -lyaml-cpp
SRC_DIR = src
OBJ_DIR = obj
# all sources and dependencies # all sources and dependencies
SRCS = main.cpp gain_example.cpp oscman.cpp yamlman.cpp SRC = $(wildcard $(SRC_DIR)/*.cpp)
DEPS = oscman.h gain_example.h yamlman.h OBJ = $(SRC:$(SRC_DIR)/%.cpp=$(OBJ_DIR)/%.o)
DEP = $(OBJ:.o=.d)
.PHONY: all clean
all: gain_example all: $(EXECUTABLE)
%.o: %.c $(DEPS) # gain_example: main.o gain_example.o oscman.o yamlman.o
$(CC) -c -o $@ $< $(CFLAGS) $(EXECUTABLE): $(OBJ)
$(CXX) $(LDFLAGS) $^ -o $@
gain_example: main.o gain_example.o oscman.o yamlman.o $(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp | $(OBJ_DIR)
$(CC) -o gain_example main.o gain_example.o oscman.o yamlman.o $(LDFLAGS) $(CXX) $(CFLAGS) -o $@ -c $<
$(OBJ_DIR):
mkdir $@
clean: clean:
rm *.o gain_example $(RM) -r $(OBJ_DIR) $(EXECUTABLE)
-include $(DEP)
...@@ -103,4 +103,3 @@ int GainExample::callback_process(jack_nframes_t x, void* object) ...@@ -103,4 +103,3 @@ int GainExample::callback_process(jack_nframes_t x, void* object)
{ {
return static_cast<GainExample*>(object)->process(x); return static_cast<GainExample*>(object)->process(x);
} }
...@@ -60,5 +60,3 @@ double OscMan::get_gain() ...@@ -60,5 +60,3 @@ double OscMan::get_gain()
{ {
return gain; return gain;
} }
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#ifndef OSCMAN_H #ifndef OSCMAN_H
#define OSCMAN_H #define OSCMAN_H
// works with 'self built' // works with 'self built'
#include <lo/lo.h> #include <lo/lo.h>
......
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