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_logout
.bashrc
......@@ -16,10 +18,9 @@ gain.pd
liblo/
wav/
*
*~
*.o
# *
# *~
# *.o
*html/
*latex/
# define the compiler
CC = g++
EXECUTABLE = gain_example
# path(s) to include files
CFLAGS = -I.
CFLAGS = -std=c++11 -Wall -I.
# libraries to link
LDFLAGS = -ljack -llo -lyaml-cpp
SRC_DIR = src
OBJ_DIR = obj
# all sources and dependencies
SRCS = main.cpp gain_example.cpp oscman.cpp yamlman.cpp
DEPS = oscman.h gain_example.h yamlman.h
SRC = $(wildcard $(SRC_DIR)/*.cpp)
OBJ = $(SRC:$(SRC_DIR)/%.cpp=$(OBJ_DIR)/%.o)
DEP = $(OBJ:.o=.d)
.PHONY: all clean
all: gain_example
all: $(EXECUTABLE)
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
# gain_example: main.o gain_example.o oscman.o yamlman.o
$(EXECUTABLE): $(OBJ)
$(CXX) $(LDFLAGS) $^ -o $@
gain_example: main.o gain_example.o oscman.o yamlman.o
$(CC) -o gain_example main.o gain_example.o oscman.o yamlman.o $(LDFLAGS)
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp | $(OBJ_DIR)
$(CXX) $(CFLAGS) -o $@ -c $<
$(OBJ_DIR):
mkdir $@
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)
{
return static_cast<GainExample*>(object)->process(x);
}
......@@ -60,5 +60,3 @@ double OscMan::get_gain()
{
return gain;
}
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