summaryrefslogtreecommitdiffstats
path: root/utils/wpseditor/screenshot/Makefile
blob: 18a6de35a5cd731e06146e0f2ed197edc51339fc (plain)
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
43
#             __________               __   ___.
#   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
#   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
#   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
#   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
#                     \/            \/     \/    \/            \/
# $Id$
#
ROOT=../../..

OS = w32
CC = gcc

ifeq ($(findstring MINGW,$(shell uname)),MINGW)
OS = w32
CC = mingw32-gcc
RM = rm
endif

ifeq ($(findstring Linux,$(shell uname)),Linux)
OS = linux
CC = gcc
RM = rm -f
endif



COMMON= main.c gd_bmp.c

INCLUDE=-I ../libwps/src \
	    -I $(ROOT)/apps/gui \
        -I $(ROOT)/firmware/export \
		-I $(ROOT)/apps/recorder \
        -I $(ROOT)/apps \
		-I .

CFLAGS = -g -Wall

all:
	$(CC) $(INCLUDE) $(CFLAGS) $(COMMON) -rdynamic -ldl -lgd -lpng -o screenshot

clean:
	$(RM) screenshot