busconsole.mak 1.02 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
PROJNAME= busconsole
APPNAME= $(PROJNAME)

USE_LUA51= YES

OPENBUSINC= ${OPENBUS_HOME}/include
OPENBUSLIB= ${OPENBUS_HOME}/lib

SRC= console.c

11 12 13 14
LIBS:= crypto \
  lua5.1 luuid lce lfs luavararg luastruct luasocket \
  loop luatuple luacoroutine luacothread luainspector luaidl oil luascs luaopenbus

15
INCLUDES+= . $(SRCLUADIR) \
16 17 18 19 20 21 22 23 24 25
  $(OPENBUSINC)/luuid \
  $(OPENBUSINC)/lce \
  $(OPENBUSINC)/luafilesystem \
  $(OPENBUSINC)/luavararg \
  $(OPENBUSINC)/luastruct \
  $(OPENBUSINC)/luasocket2 \
  $(OPENBUSINC)/loop \
  $(OPENBUSINC)/oil \
  $(OPENBUSINC)/scs/lua \
  $(OPENBUSINC)/openbus/lua
26 27 28
LDIR+= $(OPENBUSLIB)

ifneq "$(TEC_SYSNAME)" "Darwin"
29
  LIBS += uuid
30 31
endif
ifeq "$(TEC_SYSNAME)" "Linux"
32
  LFLAGS = -Wl,-E
33 34
endif
ifeq "$(TEC_SYSNAME)" "SunOS"
35 36 37 38 39 40 41
  USE_CC=Yes
  CFLAGS= -g -KPIC -mt -D_REENTRANT
  ifeq ($(TEC_WORDSIZE), TEC_64)
    CFLAGS+= -m64
  endif
  LFLAGS= $(CFLAGS) -xildoff
  LIBS += rt
42
endif
43 44

ifdef USE_STATIC
45 46 47
 SLIB:= uuid $(LIBS) 
 SLIB:= $(foreach libname, $(SLIB), $(OPENBUSLIB)/lib$(libname).a)
 LIBS:=
48
else
49
 LIBS+= dl
50 51
endif