blob: 6baa00a139bc70eea1d6820a8e5ab934f8f25215 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
APPNAME := simple
ifdef GTK_DEFAULT
ifdef USE_MOTIF
# Build Motif version in Linux,Darwin,FreeBSD
APPNAME := $(APPNAME)mot
else
GDK_CAIRO = Yes
endif
else
ifdef USE_GTK
# Build GTK version in IRIX,SunOS,AIX,Win32
APPNAME := $(APPNAME)gtk
GDK_CAIRO = Yes
endif
endif
DEFINES = USE_CONTEXTPLUS
SRC = simple.c simple_led.c iupmain.c
#DBG = Yes
USE_CD=Yes
USE_IUP3=Yes
ifeq "$(TEC_SYSNAME)" "Win32"
LEDC = $(IUP)/bin/$(TEC_SYSNAME)/ledc
else
LEDC = $(IUP)/bin/$(TEC_UNAME)/ledc
endif
simple_led.c: simple.led
$(LEDC) -f simple_loadled -o simple_led.c simple.led
USE_STATIC = Yes
#IUP = ../../../iup
#CD = ../..
#USE_IM = Yes
USE_OPENGL = Yes
ifdef USE_OPENGL
DEFINES += USE_OPENGL
endif
ifneq ($(findstring Win, $(TEC_SYSNAME)), )
LIBS = cdpdf pdflib
ifndef GDK_CAIRO
LIBS += cdcontextplus gdiplus
endif
ifdef USE_OPENGL
LIBS += cdgl ftgl
endif
else
ifdef DBG_DIR
CDLIB = $(CD)/lib/$(TEC_UNAME)d
else
CDLIB = $(CD)/lib/$(TEC_UNAME)
endif
SLIB = $(CDLIB)/libcdpdf.a $(CDLIB)/libpdflib.a
ifndef GDK_CAIRO
SLIB += $(CDLIB)/libcdcontextplus.a
LIBS = Xrender Xft
endif
ifdef USE_OPENGL
SLIB += $(CDLIB)/libcdgl.a $(CDLIB)/libftgl.a
#LIBS = ftgl
endif
endif
|