Blame view

Makefile 1.57 KB
f65fddcb4   신재종   add release optio...
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
  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_PREFIX    = $(CC_PATH)/aarch64-poky-linux-
  GCC             = $(CROSS_PREFIX)gcc
  STRIP			= $(CROSS_PREFIX)strip
  
  CFLAGS=-mcpu=cortex-a53 -march=armv8-a+crc+crypto -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security 
  LDFLAGS=-lpthread -lm -L. -lvncserver
  INC=-I./protocol -I./shared -I./
  
  CFLAGS+=`pkg-config --cflags pixman-1 libweston-9 gtk+-wayland-3.0 glib-2.0 pango harfbuzz wayland-server wayland-client xkbcommon wayland-cursor weston cairo-png libjpeg`
  LDFLAGS+=`pkg-config --libs pixman-1 libweston-9 gtk+-wayland-3.0 glib-2.0 pango harfbuzz wayland-server wayland-client xkbcommon wayland-cursor weston cairo-png libjpeg`
  
  #CFLAGS+=`pkg-config --cflags `
  #LDFLAGS+=`pkg-config --libs `
  
  debug:
  	$(GCC) $(CFLAGS) --sysroot $(SDKTARGETSYSROOT) $(LDFLAGS) $(INC) -o weston-vncserver \
  	vncserver.c \
  	protocol/pointer-constraints-unstable-v1-protocol.c \
  	protocol/relative-pointer-unstable-v1-protocol.c \
  	protocol/text-cursor-position-protocol.c \
  	protocol/viewporter-protocol.c \
  	protocol/weston-screenshooter-protocol.c \
  	protocol/xdg-shell-protocol.c \
  	shared/os-compatibility.c \
  	shared/xalloc.c \
  	shared/file-util.c \
  	shared/cairo-util.c \
  	shared/frame.c \
  	shared/image-loader.c \
  	window.c
  
  release: debug
  	@echo "#### STRIP ####"
  	$(STRIP) weston-vncserver
  
  
  clean:
  	rm weston-vncserver