File: Makefile.gtkmm

package info (click to toggle)
gnudoq 0.94-2.2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 2,732 kB
  • ctags: 240
  • sloc: cpp: 2,696; makefile: 3
file content (43 lines) | stat: -rw-r--r-- 1,061 bytes parent folder | download | duplicates (4)
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

PREFIX=/usr/local
BINDIR=$(PREFIX)/bin

VERSION=\"0.93\"

SOURCES=GNUDoku.C sudoku.C sudoku-solve.C
TARGET=GNUDoku
CXXFLAGS=`pkg-config gtkmm-2.4 --cflags` "-DVERSION=$(VERSION)"
LIBS=`pkg-config gtkmm-2.4 --libs`

TEST_TARGET=GNUDoku-test
TEST_SOURCES=sudoku-solve.C sudoku-solve-test.C
TEST_CXXFLAGS=-DSUDOKU_SOLVE_DEBUG=true -g

all: $(TARGET)

clean:
	rm -f $(TARGET)

$(TARGET): $(SOURCES) Makefile
	$(CXX) $(SOURCES) -o $(TARGET) $(CXXFLAGS) $(LIBS)

install:
	install -d $(BINDIR)
	install -s $(TARGET) $(BINDIR)
	install -d $(PREFIX)/share/applications
	install -m 0644 GNUDoku.desktop $(PREFIX)/share/applications
	install -d $(PREFIX)/share/pixmaps
	install -m 0644 GNUDoku.png $(PREFIX)/share/pixmaps

uninstall:
	rm -f $(BINDIR)/$(TARGET)
	rm -f $(PREFIX)/share/applications/GNUDoku.desktop
	rm -f $(PREFIX)/share/pixmaps/GNUDoku.png 

$(TEST_TARGET): $(TEST_SOURCES) Makefile
	$(CXX) $(TEST_SOURCES) -o $(TEST_TARGET) $(CXXFLAGS) $(TEST_CXXFLAGS) $(LIBS)

test: $(TEST_TARGET)

withgtkmm24: CXXFLAGS+= -DGNUDOKU_GTKMMVER=24
withgtkmm24: $(TARGET)