RSS Git Download  Clone
Raw Blame History
################################################################################
#	Makefile settings for TMS System
################################################################################
#

# The main version
PROJECT		= TMS
VERSION		= 0.3.4
RELEASE		= 1.beam

# The BUILD type
BUILD		= FULL
#BUILD		= CLIENT
#BUILD		= LIB

# The TARGET system
TARGET		= fc6
#TARGET		= rh7
#TARGET		= fpgaLinux
#TARGET		= lynxos

DEST_DIR	= 
PREFIX		= /usr/tms


RELEASE		:= ${RELEASE}.${TARGET}

SYSETCDIR	= $(DEST_DIR)/etc
SYSDATADIR	= $(DEST_DIR)/data
BINDIR		= $(DEST_DIR)/$(PREFIX)/bin
INCDIR		= $(DEST_DIR)/$(PREFIX)/include
LIBDIR		= $(DEST_DIR)/$(PREFIX)/lib
DOCDIR		= $(DEST_DIR)/$(PREFIX)/doc
HTMLDIR		= $(DEST_DIR)/$(PREFIX)/html
DESKTOPDIR	= $(DEST_DIR)/usr/share/applications
DESKTOPDIRDIR	= $(DEST_DIR)/usr/share/desktop-directories
ICONSDIR	= $(DEST_DIR)/usr/share/icons

CONFDIR		= $(DEST_DIR)/$(PREFIX)/config
STATETABLEDIR	= $(DEST_DIR)/$(PREFIX)/stateTables
DATADIR		= $(DEST_DIR)/$(PREFIX)/data
FPGADIR		= $(DEST_DIR)/$(PREFIX)/fpga

# Build Settings
SRCINCDIR	= ${TOP}/include
SRCLIBDIR	= ${TOP}/lib
INCDIRS		= -I${SRCINCDIR} -I${SRCINCDIR}/Beam
LIBDIRS		= -L${SRCLIBDIR}

COPTIONS	= -pipe -Wall -Wno-parentheses -Wreturn-type -Wno-conversion
DEBUGFLAGS	= -O2 
CXXFLAGS	= $(COPTIONS) $(DEBUGFLAGS) -I. $(INCDIRS) -DVERSION=\"$(VERSION)\"
CXXFLAGS	+= -D_GNU_SOURCE
CXXFLAGS	+= -Wno-deprecated
CFLAGS		= $(CXXFLAGS)
CXX		= g++
CC		= g++
LDFLAGS		= $(LIBDIRS) $(DEBUGFLAGS)
LDLIBS		= -lBeam -lpthread
DFLAGS		= -Y -I. $(INCDIRS)
RANLIB		= true

# QT Version
QTDIR		= $(shell ls -d /usr/lib/qt-* | tail -1)

# TARGET Special Settings
ifeq ("$(TARGET)", "fc6")
	CXXFLAGS	+= -DHAVE_GETIFADDRS -DHAVE_DA8150
endif
ifeq ("$(TARGET)", "rh7")
	CXXFLAGS	+= -DOLD_GXX
endif
ifeq ("$(TARGET)", "fpgaLinux")
	CXXFLAGS	+= -DOLD_GXX
endif
ifeq ("$(TARGET)", "lynxos")
endif