Skip to content

Commit

Permalink
makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaji Khan committed Oct 12, 2024
1 parent abf7f26 commit fc33ed4
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 18 deletions.
Empty file removed 23-08-2024 15-15-30.mp3
Empty file.
Empty file removed 23-08-2024 15-15-48.mp3
Empty file.
Binary file removed 23-08-2024 15-20-05.mp3
Binary file not shown.
Binary file removed 23-08-2024 15-21-01.mp3
Binary file not shown.
Binary file removed 23-08-2024 15-26-12.mp3
Binary file not shown.
Binary file removed 23-08-2024 15-27-40.mp3
Binary file not shown.
Binary file removed 23-08-2024 15-29-35.mp3
Binary file not shown.
Binary file removed 23-08-2024 15-30-33.mp3
Binary file not shown.
Binary file removed 23-08-2024 15-31-44.mp3
Binary file not shown.
Binary file removed 23-08-2024 15-32-16.mp3
Binary file not shown.
Binary file removed 23-08-2024 15-33-04.mp3
Binary file not shown.
Binary file removed 23-08-2024 15-38-51.mp3
Binary file not shown.
Binary file removed 23-08-2024 15-42-31.mp3
Binary file not shown.
36 changes: 19 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,63 +8,65 @@ OPUS=`pkg-config libopusenc opus --libs --cflags`
LAME=`pkg-config lame --libs --cflags`
X11=`pkg-config x11 --libs --cflags`
OPTIMIZE=#-Ofast -mtune=cortex-a72 -mcpu=cortex-a72
CC=cc
CPP=c++

all: amprack

amprack: version.o FileWriter.o main.o rack.o presets.o SharedLibrary.o engine.o jack.o process.o util.o snd.o knob.o
c++ *.o -o amprack $(GTK) $(LV2) $(JACK) $(OPTIMIZE) $(SNDFILE) $(OPUS) -l:libmp3lame.a $(LAME)
$(CPP) *.o -o amprack $(GTK) $(LV2) $(JACK) $(OPTIMIZE) $(SNDFILE) $(OPUS) -l:libmp3lame.a $(LAME)

main.o: main.cc main.h rack.o presets.o
g++ main.cc -c $(GTK) $(LV2) $(OPTIMIZE) -Wno-deprecated-declarations
$(CPP) main.cc -c $(GTK) $(LV2) $(OPTIMIZE) -Wno-deprecated-declarations

rack.o: rack.cc rack.h settings.o knob.o pluginui.o
g++ rack.cc -c $(GTK) $(LV2) $(OPTIMIZE)
$(CPP) rack.cc -c $(GTK) $(LV2) $(OPTIMIZE)

settings.o: settings.cc settings.h
g++ settings.cc -c $(GTK) $(LV2) $(OPTIMIZE)
$(CPP) settings.cc -c $(GTK) $(LV2) $(OPTIMIZE)

pluginui.o: pluginui.cpp pluginui.h
g++ pluginui.cpp -c $(GTK) $(LV2) -Wno-deprecated-declarations
$(CPP) pluginui.cpp -c $(GTK) $(LV2) -Wno-deprecated-declarations

presets.o: presets.cc presets.h
g++ presets.cc -c $(GTK) $(OPTIMIZE) $(LV2) -Wno-deprecated-declarations
$(CPP) presets.cc -c $(GTK) $(OPTIMIZE) $(LV2) -Wno-deprecated-declarations

SharedLibrary.o: SharedLibrary.cpp SharedLibrary.h Plugin.cpp Plugin.h PluginControl.cpp PluginControl.h
g++ SharedLibrary.cpp Plugin.cpp PluginControl.cpp lv2_ext.cpp -c $(LV2) $(OPTIMIZE)
$(CPP) SharedLibrary.cpp Plugin.cpp PluginControl.cpp lv2_ext.cpp -c $(LV2) $(OPTIMIZE)

engine.o: engine.cc engine.h snd.cc snd.h
g++ engine.cc -c $(JACK) $(LV2) $(OPTIMIZE) $(SNDFILE) $(GTK)
$(CPP) engine.cc -c $(JACK) $(LV2) $(OPTIMIZE) $(SNDFILE) $(GTK)

clean:
rm -v *.o amprack

missing: SharedLibrary.o missing.cc
c++ missing.cc SharedLibrary.o -o missing -std=c++17 $(LV2) -I/usr/include/lv2
$(CPP) missing.cc SharedLibrary.o -o missing -std=$(CPP)17 $(LV2) -I/usr/include/lv2

test: lv2_test.c
cc lv2_test.c $(LV2) -I/usr/include/lv2 -o lv2_test
$(CC) lv2_test.c $(LV2) -I/usr/include/lv2 -o lv2_test

jack.o: jack.cc jack.h
cc jack.cc -c $(JACK)
$(CC) jack.cc -c $(JACK)

process.o: process.cc process.h
cc process.cc -c
$(CC) process.cc -c

util.o: util.cc util.h
c++ $(GTK) -c util.cc -Wno-deprecated-declarations
$(CPP) $(GTK) -c util.cc -Wno-deprecated-declarations

snd.o: snd.cc snd.h
c++ snd.cc -c $(SNDFILE)
$(CPP) snd.cc -c $(SNDFILE)

knob.o: knob.cpp cairo.cpp objects.cpp dictionary.cpp mem.cpp pango.cpp
#~ cc -c `pkg-config gtk4 --libs --cflags` GxRegler.cpp GxControlParameter.cpp -w -lm drawingutils.cpp GxKnob.cpp GxBigKnob.cpp
c++ `pkg-config gtk4 --libs --cflags` -w -lm knob.cpp cairo.cpp objects.cpp dictionary.cpp mem.cpp pango.cpp -c
$(CPP) `pkg-config gtk4 --libs --cflags` -w -lm knob.cpp cairo.cpp objects.cpp dictionary.cpp mem.cpp pango.cpp -c

version.o:
echo \#define VERSION `git rev-list --count HEAD` > version.h

FileWriter.o: FileWriter.cpp FileWriter.h LockFreeQueue.cpp LockFreeQueue.h vringbuffer.o
c++ upwaker.c vringbuffer.cc FileWriter.cpp LockFreeQueue.cpp $(OPUS) $(SNDFILE) -c -w $(JACK)
$(CPP) upwaker.c vringbuffer.cc FileWriter.cpp LockFreeQueue.cpp $(OPUS) $(SNDFILE) -c -w $(JACK)

vringbuffer.o: upwaker.c vringbuffer.cc
c++ -fpermissive -c upwaker.c vringbuffer.cc
$(CPP) -fpermissive -c upwaker.c vringbuffer.cc
Binary file modified amprack
Binary file not shown.
Binary file modified rack.o
Binary file not shown.
Empty file removed to.ogv
Empty file.
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define VERSION 133
#define VERSION 134

0 comments on commit fc33ed4

Please sign in to comment.