-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 934 Bytes
/
Makefile
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
ROOT=root
BINDIR=/usr/bin
CFLAGS=$(RPM_OPT_FLAGS) $(shell pkg-config --cflags gtk+-2.0) $(shell pkg-config --cflags glib-2.0)
LDFLAGS=$(shell pkg-config --libs gtk+-2.0) $(shell pkg-config --libs glib-2.0)
all: nvdock
nvdock: nvdock.o icon.o util.o
$(CC) $(CFLAGS) nvdock.o icon.o util.o -o nvdock $(LDFLAGS)
nvdock.o: src/nvdock.c src/nvdock.h
$(CC) $(CFLAGS) -Isrc -c src/nvdock.c
icon.o: src/icon.h src/icon.c
$(CC) $(CFLAGS) -Isrc -c src/icon.c
util.o: src/util.c
$(CC) $(CFLAGS) -Isrc -c src/util.c
install:
mkdir -p $(DESTDIR)$(BINDIR)
$(INSTALL) -o $(ROOT) -g $(ROOT) -m 755 nvdock \
$(DESTDIR)$(BINDIR)/nvdock
mkdir -p $(DESTDIR)/usr/share/pixmaps
$(INSTALL) -o $(ROOT) -g $(ROOT) -m 644 data/nvdock.png \
$(DESTDIR)/usr/share/pixmaps
mkdir -p $(DESTDIR)/usr/share/applications
$(INSTALL) -o $(ROOT) -g $(ROOT) -m 644 data/nvdock.desktop \
$(DESTDIR)/usr/share/applications
clean:
rm -f nvdock *.o