Blame view

Makefile 1.53 KB
a902b0089   신재종   fork clone_app so...
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
  TOOLCHAIN_DIR       = /opt/fsl-imx-wayland/5.10-hardknott
  SDKTARGETSYSROOT    = $(TOOLCHAIN_DIR)/sysroots/cortexa53-crypto-poky-linux
  
  CC_PATH			= /opt/fsl-imx-wayland/5.10-hardknott/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux
  CROSS_FREFIX    = $(CC_PATH)/aarch64-poky-linux-
  GCC             = $(CROSS_FREFIX)gcc
  
  CFLAGS=-mcpu=cortex-a53 -march=armv8-a+crc+crypto -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security 
  #LDFLAGS=-lweston-client
  
  INCPATH=-I./protocol -I./shared -I./ \
  	-I/opt/fsl-imx-wayland/5.10-hardknott/sysroots/cortexa53-crypto-poky-linux/usr/include/cairo\
  	-I/opt/fsl-imx-wayland/5.10-hardknott/sysroots/cortexa53-crypto-poky-linux/usr/include/libweston-9\
  	-I/opt/fsl-imx-wayland/5.10-hardknott/sysroots/cortexa53-crypto-poky-linux/usr/include/pixman-1\
  	-I/opt/fsl-imx-wayland/5.10-hardknott/sysroots/cortexa53-crypto-poky-linux/usr/include/pango-1.0\
  	-I/opt/fsl-imx-wayland/5.10-hardknott/sysroots/cortexa53-crypto-poky-linux/usr/include/glib-2.0\
  	-I/opt/fsl-imx-wayland/5.10-hardknott/sysroots/cortexa53-crypto-poky-linux/usr/lib/glib-2.0/include\
  	-I/opt/fsl-imx-wayland/5.10-hardknott/sysroots/cortexa53-crypto-poky-linux/usr/include/harfbuzz
  
  
  all:
  	$(GCC) $(CFLAGS)--sysroot $(SDKTARGETSYSROOT) $(LDFLAGS) $(INCPATH) -o weston-screenshooter \
  	screenshot.c \
  	protocol/weston-screenshooter-protocol.c \
  	shared/os-compatibility.c \
  	shared/xalloc.c \
  	shared/file-util.c \
  	shared/cairo-util.c \
  	window.c
  
  clean:
  	rm weston-screenshooter