-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (38 loc) · 1.81 KB
/
Makefile
File metadata and controls
56 lines (38 loc) · 1.81 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Spectrum3d 'Makefile' automatically generated by the 'configure' script
VPATH = src:../headers
objects = main.o mainwindow.o onclick.o menu.o display.o events.o geis.o scale.o testrtpool.o
spectrum3d : $(objects)
gcc -Wall $(objects) -o spectrum3d `pkg-config jack gstreamer-0.10 gtk+-2.0 --libs --cflags` -lSDL -lSDL_ttf -lGL -lGLU -lutouch-geis
main.o : main.c main.h config.h
cc -c $< `pkg-config gtk+-2.0 --libs --cflags`
mainwindow.o : mainwindow.c mainwindow.h config.h
cc -c $< `pkg-config gstreamer-0.10 gtk+-2.0 --libs --cflags`
onclick.o : onclick.c onclick.h config.h
cc -c $< `pkg-config gstreamer-0.10 gtk+-2.0 --libs --cflags`
menu.o : menu.c menu.h config.h
cc -c $< `pkg-config gtk+-2.0 --libs --cflags`
display.o : display.c display.h config.h
cc -c $< `pkg-config gstreamer-0.10 --libs --cflags` -lGL -lGLU
events.o : events.c events.h config.h
cc -c $< `pkg-config gtk+-2.0 --libs --cflags` -lSDL
geis.o : geis.c geis.h config.h
cc -c $< `pkg-config gtk+-2.0 --libs --cflags` -lutouch-geis
scale.o : scale.c scale.h config.h
cc -c $< -lSDL -lSDL_ttf -lGL -lGLU
testrtpool.o : testrtpool.c testrtpool.h config.h
cc -c $< `pkg-config gstreamer-0.10 --libs --cflags`
.PHONY : clean
clean :
-rm spectrum3d $(objects)
prefix=/usr/local
install: spectrum3d
install -m 0755 spectrum3d $(prefix)/bin
install -m 0777 files/spectrum3d.conf $(prefix)/etc
-mkdir $(prefix)/share/icons
install -m 0644 files/spectrum3d.png $(prefix)/share/icons/spectrum3d.png
install -m 0777 files/spectrum3d.desktop /usr/share/applications
install -m 0644 files/FreeSans.ttf $(prefix)/share/fonts
.PHONY: install
.PHONY : uninstall
uninstall :
-rm $(prefix)/bin/spectrum3d $(prefix)/etc/spectrum3d.conf $(prefix)/share/icons/spectrum3d.png /usr/share/applications/spectrum3d.desktop $(prefix)/share/fonts/FreeSans.ttf