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 (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
......@@ -16,10 +18,9 @@ gain.pd
# *
# *~
# *.o
# define the compiler
CC = g++
EXECUTABLE = gain_example
# path(s) to include files
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
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
# gain_example: main.o gain_example.o oscman.o yamlman.o
$(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 $<
mkdir $@
rm *.o gain_example
-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