File: Makefile

package info (click to toggle)
kluppe 0.6.20-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,096 kB
  • ctags: 1,621
  • sloc: ansic: 14,218; makefile: 84; sh: 21
file content (39 lines) | stat: -rw-r--r-- 1,169 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
37
38
39
CC = gcc
VERSION = `cat VERSION`
INSTALL_PREFIX = /usr/local
BIN_DIR = $(INSTALL_PREFIX)/bin
PIXMAPS_DIR = $(INSTALL_PREFIX)/share/pixmaps
TEMP_ROOT = /tmp
TEMP_DIR = kluppe-$(VERSION)
CFLAGS = -g -pthread -march=native -mfpmath=sse -msse3 -O3 -Wall -DHAVE_ALSA -DHAVE_OSC -DHAVE_USB
#CFLAGS = -msse3 -pthread -O3 -Wall -DHAVE_ALSA -DHAVE_USB -DHAVE_OSC
export 

kluppe: commons 
	rm -f src/frontend/kluppe/kluppe.o 
	cd src/frontend/kluppe && $(MAKE)

klopfer: commons
	rm -f src/frontend/klopfer/klopfer.o
	cd src/frontend/klopfer && $(MAKE)

commons:
	cd src/common/ && $(MAKE) common

install: kluppe
	cd src/frontend/kluppe && $(MAKE) install

klopfer_install: klopfer
	cd src/frontend/klopfer && $(MAKE) install

clean:
	cd src/common && $(MAKE) clean
	cd src/frontend/kluppe && $(MAKE) clean
	cd src/frontend/klopfer && $(MAKE) clean

tgz: clean
	mkdir $(TEMP_ROOT)/$(TEMP_DIR)
	cp -faR src Makefile TODO VERSION CHANGES.log LICENSE.txt README.txt $(TEMP_ROOT)/$(TEMP_DIR)
	tar -C $(TEMP_ROOT) -cvzpf kluppe-$(VERSION).tar.gz $(TEMP_DIR)
	rm -R $(TEMP_ROOT)/$(TEMP_DIR)
#	cd ..;tar --exclude *.wav --exclude *.o -cvzpf kluppe-`cat kluppe/VERSION`.tar.gz kluppe/