-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.ezx
31 lines (26 loc) · 1.02 KB
/
Makefile.ezx
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
# This Makefile created by EXL, 04-Dec-2021
# Only for pgrab and dgrab
EZX_DEVICE_PATH = /opt/toolchains/motoezx
EZX_DEVICE_CC = $(EZX_DEVICE_PATH)/crosstool/bin/arm-linux-gnu-gcc
EZX_DEVICE_CXX = $(EZX_DEVICE_PATH)/crosstool/bin/arm-linux-gnu-g++
EZX_DEVICE_STRIP = $(EZX_DEVICE_PATH)/crosstool/bin/arm-linux-gnu-strip
EZX_DEVICE_CFLAGS = -pipe -Wall -W -O2
EZX_DEVICE_CXXFLAGS = -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2
all: pgrab dgrab
pgrab: pgrab.c
$(EZX_DEVICE_CC) $(EZX_DEVICE_CFLAGS) \
-I$(EZX_DEVICE_PATH)/include \
pgrab.c -o pgrab \
-Wl,-rpath-link,$(EZX_DEVICE_PATH)/a1200/qt/lib \
-L$(EZX_DEVICE_PATH)/a1200/qt/lib -lqte-mt
$(EZX_DEVICE_STRIP) -s pgrab
dgrab: dgrab.cpp
$(EZX_DEVICE_CXX) $(EZX_DEVICE_CXXFLAGS) \
-I$(EZX_DEVICE_PATH)/include -I$(EZX_DEVICE_PATH)/a1200/qt/include \
dgrab.cpp -o dgrab \
-Wl,-rpath-link,$(EZX_DEVICE_PATH)/a1200/qt/lib \
-L$(EZX_DEVICE_PATH)/a1200/qt/lib -lqte-mt
$(EZX_DEVICE_STRIP) -s dgrab
clean:
-rm -f pgrab
-rm -f dgrab