source: trunk/Make/Makedefs @ 61

Revision 61, 1.9 KB checked in by art, 11 years ago (diff)
RevLine 
[11]1#-----------------------------------------------
[46]2# Global definitions
3#-----------------------------------------------
4VERSION = 0.0.8
5
6#-----------------------------------------------
[32]7# Find out the platform
8#-----------------------------------------------
9SHELL = /bin/sh
10OS := $(shell uname)
11
12## IRIX ?
13ifeq ($(findstring IRIX,$(OS)),IRIX)
14OS := IRIX
15endif
16
17## Make CYGWIN_XXXX CYGWIN so it's "Windows cross platform" :)
18ifeq ($(findstring CYGWIN,$(OS)),CYGWIN)
19OS := CYGWIN
20endif
21
22## Make MINGW_XXXX MINGW so it's "Windows cross platform" :)
23ifeq ($(findstring MINGW,$(OS)),MINGW)
24OS := MINGW
25endif
26
27#-----------------------------------------------
[11]28# Paths where to find includes and libraries
29#-----------------------------------------------
[12]30TOPDIR ?= .
31BUILDPATH = build
32VPATH =. $(BUILDPATH)
[11]33
34prefix ?= /usr/local
35exec_prefix = $(prefix)
36bindir = $(exec_prefix)/bin
37libdir = $(exec_prefix)/lib
38incdir = $(exec_prefix)/include
39
[54]40INCPATH ?= -I$(TOPDIR)/include -I$(prefix)/include -I/usr/local/include -I/usr/include
41LIBPATH ?= -L$(TOPDIR)/lib -L$(prefix)/lib -L/usr/local/lib -L/usr/lib
[13]42
[11]43INST_LOCATION = $(prefix)
44INST_LOCATION_BIN = $(INST_LOCATION)/bin
45INST_LOCATION_LIB = $(INST_LOCATION)/lib
46INST_LOCATION_INC = $(INST_LOCATION)/include
47
48#-----------------------------------------------
49# Define macros with compiler options
50#-----------------------------------------------
[12]51CC = g++
[61]52CFLAGS = -m32 -pthread -g -O2 -Wall -Werror $(INCPATH)
[12]53LIBS =
54LDFLAGS = -shared $(LIBPATH) $(LIBS)
55DEPARG = -MM
[11]56
57INSTALL = install -c
58INSTALL_INC = $(INSTALL) -m 644
59INSTALL_BIN = $(INSTALL)
60INSTALL_LIB = $(INSTALL)
61INSTALL_DIR = $(INSTALL) -d
62MKDIR = mkdir
63MAKE = make
[46]64LN = ln -s
[11]65
66INSTALL_DIRS = $(INST_LOCATION_LIB) $(INST_LOCATION_INC)
67
68#-----------------------------------------------
69# Defining macros for building
70#-----------------------------------------------
71OBJECTS=$(CPPFILES:.cpp=.o)\
72                $(CFILES:.c=.o)
73
74DEPENDS=$(CPPFILES:.cpp=.d)\
75                $(CFILES:.c=.cd)
76               
77               
Note: See TracBrowser for help on using the repository browser.