summaryrefslogtreecommitdiff
path: root/iup/srcconsole/iuplua3.mak
blob: e89249650cb80242deb7ecb8ee2b0bbce388f6de (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
PROJNAME = iup
APPNAME = iuplua3
APPTYPE = console
OPT = YES

IUP := ..
                
# IM is a C++ library with a C API                
LINKER = $(CPPC)

SRC = iup_lua3.c
SRCLUA = console3.lua
LOHDIR = loh

USE_LUA = Yes
USE_IUPLUA = Yes
USE_IUP3 = Yes
          
USE_STATIC = Yes

ifdef BUILD_64
  ifneq ($(findstring SunOS, $(TEC_UNAME)), )
    LINKER = cc
    IUPLUA_NO_IM = Yes
  endif
  ifneq ($(findstring AIX, $(TEC_UNAME)), )
    LINKER = cc
    IUPLUA_NO_IM = Yes
  endif
endif

ifeq "$(TEC_UNAME)" "SunOS510x86"
  IUPLUA_NO_GL = Yes
endif

#IUPLUA_NO_GL = Yes
ifndef IUPLUA_NO_GL
  USE_OPENGL = Yes
else
  DEFINES = IUPLUA_NO_GL
endif

#IUPLUA_NO_CD = Yes
ifndef IUPLUA_NO_CD 
  USE_CD = Yes
  USE_CDLUA = Yes
  USE_IUPCONTROLS = Yes
  ifneq ($(findstring Win, $(TEC_SYSNAME)), )
    LIBS += iup_pplot iuplua_pplot3
  else
    IUPLIB = $(IUP)/lib/$(TEC_UNAME)
    SLIB += $(IUPLIB)/libiuplua_pplot3.a $(IUPLIB)/libiup_pplot.a
  endif
else
  DEFINES += IUPLUA_NO_CD
endif

#IUPLUA_NO_IM = Yes
ifndef IUPLUA_NO_IM
  USE_IM = Yes   
  USE_IMLUA = Yes
  
  ifneq ($(findstring Win, $(TEC_SYSNAME)), )
    LIBS += iupim iupluaim3
  else
    IUPLIB = $(IUP)/lib/$(TEC_UNAME)
    SLIB += $(IUPLIB)/libiupluaim3.a $(IUPLIB)/libiupim.a
  endif
else
  DEFINES += IUPLUA_NO_IM
endif

ifneq ($(findstring AIX, $(TEC_UNAME)), )
  FLAGS  += -mminimal-toc
  OPTFLAGS = -mminimal-toc -ansi -pedantic 
  LFLAGS = -Xlinker "-bbigtoc"
endif

ifneq ($(findstring Win, $(TEC_SYSNAME)), )
  SRC += iuplua3.rc
endif

ifeq ($(TEC_UNAME), vc8)
  ifdef DBG
    #debug info not working for vc8 linker
    define DBG
    endef
  endif
endif