File: Makefile

package info (click to toggle)
gjay 0.2.8.3-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 532 kB
  • ctags: 717
  • sloc: ansic: 6,757; makefile: 101
file content (66 lines) | stat: -rw-r--r-- 1,185 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
PREFIX = $(DESTDIR)/usr
CC = gcc
LINK = $(CC)
CFLAGS = -g -Wall `pkg-config --cflags gtk+-2.0`
LFLAGS = `pkg-config --libs gtk+-2.0` -lxmms -lgsl -lgslcblas -lm -lpthread
TARGET = gjay

HEADERS = \
	gjay.h \
	songs.h \
	prefs.h \
	ui.h \
	rgbhsv.h \
	analysis.h \
	playlist.h \
	ipc.h \
	constants.h \
	vorbis.h \
	mp3.h 
OBJECTS = \
	gjay.o \
	ipc.o \
	prefs.o \
	songs.o \
	rgbhsv.o \
	ui.o \
	ui_about_view.o \
	ui_explore_view.o \
	ui_prefs_view.o \
	ui_selection_view.o \
	ui_playlist_view.o \
	ui_colorwheel.o \
	ui_colorbox.o \
	ui_menubar.o \
	gjay_xmms.o \
	analysis.o \
	playlist.o \
	vorbis.o \
	mp3.o


INSTALL = /usr/bin/install -o root -g root -m

all: $(TARGET) 

%.o: %.c $(HEADERS)
	$(CC) -c $(CFLAGS) -o $@ $<


$(TARGET): $(OBJECTS)  
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS)

doc: doc/gjay.1.gz

doc/gjay.1.gz: doc/gjay.1
	gzip -9 < doc/gjay.1 > doc/gjay.1.gz

install: $(TARGET) doc
	$(INSTALL) 755    gjay $(PREFIX)/bin/gjay 
	$(INSTALL) 644    icons/*.png $(PREFIX)/share/gjay/icons/
	$(INSTALL) 755 -d $(PREFIX)/share/man/man1
	$(INSTALL) 644    doc/gjay.1.gz $(PREFIX)/share/man/man1/gjay.1.gz

clean:
	-rm -f *.a *.o *~ data/*~ core $(TARGET) doc/*.gz \#*