summaryrefslogtreecommitdiff
path: root/Makefile
blob: de44e799d185d8bbf08c46a4b35d9ea68dd8dcd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
UNAME = $(shell uname)

CXX = g++

ifneq ($(UNAME), FreeBSD)
	WXFLAGS = `wx-config --cxxflags --libs`
endif
ifeq ($(UNAME),FreeBSD)
	WXFLAGS:= `wxgtk3u-3.2-config --cxxflags --libs`
	CXX:= clang++
endif
ifeq ($(UNAME), OpenBSD)
	CXX:= clang++
endif

CXXFLAGS = -std=c++11 -Wall -Wextra

all: translit

translit: translit.cpp
	$(CXX) $(CXXFLAGS) -o translit translit.cpp $(WXFLAGS)
clean:
	rm translit