-
Notifications
You must be signed in to change notification settings - Fork 41
/
Makefile-convert
42 lines (26 loc) · 919 Bytes
/
Makefile-convert
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
# Makefile for linvstconvert
# linvstconvert is made using the convert directory
# linvstconvert needs the gtk3 dev libraries installed
# to make use make -f Makefile-convert
# to install to /usr/bin use sudo make -f Makefile-convert install
# to clean use sudo make -f Makefile-convert clean
CXX = g++
CXX_FLAGS =
PREFIX = /usr
BIN_DIR = $(DESTDIR)$(PREFIX)/bin
BUILD_FLAGS = `pkg-config --cflags gtk+-3.0` $(CXX_FLAGS)
LINK_FLAGS = $(LDFLAGS)
LINK_APP = -no-pie `pkg-config --libs gtk+-3.0` $(LINK_FLAGS)
SRC_DIR=convert
vpath linvstconvertgtk.cpp $(SRC_DIR)
TARGETS = linvstconvert
# --------------------------------------------------------------
all: $(TARGETS)
linvstconvert: linvstconvertgtk.o
$(CXX) $^ $(LINK_APP) -o $@
linvstconvertgtk.o: linvstconvertgtk.cpp
$(CXX) $(BUILD_FLAGS) -c $^ -o $@
clean:
rm -fR *.o $(TARGETS)
install:
install -m 755 linvstconvert $(BIN_DIR)