File: Makefile

package info (click to toggle)
freebirth 0.3.2-9.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,632 kB
  • ctags: 640
  • sloc: ansic: 4,724; makefile: 89; sh: 1
file content (36 lines) | stat: -rw-r--r-- 1,050 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Makefile for Freebirth 
#

CC=gcc
LOADLIBES=-lm -L/usr/lib -lgtk-x11-2.0
CFLAGS=-g -Wall $(shell pkg-config --cflags gtk+-2.0)
LDFLAGS=$(LOADLIBES) $(shell pkg-config --libs gtk+-2.0)

OFILES=\
oscillator.o sequencer.o envelope.o filter.o gtkdial.o mixer.o \
raw_wave.o event.o sample_producer.o blender.o delay.o reverb.o all_pass.o \
delay_panel.o reverb_panel.o multi_tap_delay.o sample_freq_strip.o

CFILES=\
oscillator.c sequencer.c envelope.c filter.c gtkdial.c mixer.c \
raw_wave.c event.c sample_producer.c blender.c delay.c reverb.c all_pass.c \
delay_panel.c reverb_panel.c multi_tap_delay.c sample_freq_strip.c

all: freebirth 

clean: Makefile.deps
	-rm -f *.o freebirth fusebirth Makefile.deps *~

freebirth: $(OFILES) fused_loop.o freebirth.o
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

fusebirth: $(OFILES) fuse_loops.o fusebirth.o
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

fusebirth.o: freebirth.c
	$(CC) -c $(CFLAGS) -DFUSE_LOOPS -o fusebirth.o freebirth.c

Makefile.deps:
	gcc -MM $(CFLAGS) $(CFILES) > Makefile.deps

include Makefile.deps