-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (24 loc) · 904 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
35
# The location of the 3.0 (or later X-Plane SDK)
XPSDK=$(HOME)/XPSDK
# The location of your X-Plane 11 installation
XP11=$(HOME)/XP11
# The name of this plug-in
MYNAME=SymmetricalBroccoli
# Whether to show debug info in a window, 0 or 1
DEBUGWINDOW=0
# Whether to produce copious log data into a file in /tmp
DEBUGLOGDATA=1
DEFINES=-DDEBUGWINDOW=$(DEBUGWINDOW) -DDEBUGLOGDATA=$(DEBUGLOGDATA)
CXX=clang++
# APL: macOS
# IBM: Windows
# LIN: Linux
CFLAGS=-std=c++17 -Werror -I$(XPSDK)/CHeaders/XPLM $(DEFINES) -DAPL=0 -DIBM=0 -DLIN=1 -DXPLM200 -DXPLM210 -DXPLM300 -DXPLM301 -DXPLM302 -DXPLM303 -Wall -fpic -Ofast
all : $(MYNAME).xpl
install : all
cd $(XP11)/Resources/plugins && mkdir -p $(MYNAME)/lin_x64
cp $(MYNAME).xpl $(XP11)/Resources/plugins/$(MYNAME)/lin_x64/$(MYNAME).xpl
clean :
rm $(MYNAME).xpl
$(MYNAME).xpl : $(MYNAME).cpp
$(CXX) $(CFLAGS) $(MYNAME).cpp -shared -o $(MYNAME).xpl