source: Make/Makedefs @ 13

Revision 13, 1.3 KB checked in by art, 13 years ago (diff)
RevLine 
[11]1#-----------------------------------------------
2# Paths where to find includes and libraries
3#-----------------------------------------------
[12]4TOPDIR ?= .
5BUILDPATH = build
6VPATH =. $(BUILDPATH)
[11]7
8prefix ?= /usr/local
9exec_prefix = $(prefix)
10bindir = $(exec_prefix)/bin
11libdir = $(exec_prefix)/lib
12incdir = $(exec_prefix)/include
13
[13]14INCPATH ?= -I$(prefix)/include -I/usr/local/include -I/usr/include
15LIBPATH ?= -L$(prefix)/lib -L/usr/local/lib -L/usr/lib
16
[11]17INST_LOCATION = $(prefix)
18INST_LOCATION_BIN = $(INST_LOCATION)/bin
19INST_LOCATION_LIB = $(INST_LOCATION)/lib
20INST_LOCATION_INC = $(INST_LOCATION)/include
21
22#-----------------------------------------------
23# Define macros with compiler options
24#-----------------------------------------------
[12]25SHELL = /bin/sh
26CC = g++
27CFLAGS =-O2 -Wall -Werror $(INCPATH)
28LIBS =
29LDFLAGS = -shared $(LIBPATH) $(LIBS)
30DEPARG = -MM
[11]31
32INSTALL = install -c
33INSTALL_INC = $(INSTALL) -m 644
34INSTALL_BIN = $(INSTALL)
35INSTALL_LIB = $(INSTALL)
36INSTALL_DIR = $(INSTALL) -d
37MKDIR = mkdir
38MAKE = make
39
40INSTALL_DIRS = $(INST_LOCATION_LIB) $(INST_LOCATION_INC)
41
42#-----------------------------------------------
43# Defining macros for building
44#-----------------------------------------------
45OBJECTS=$(CPPFILES:.cpp=.o)\
46                $(CFILES:.c=.o)
47
48DEPENDS=$(CPPFILES:.cpp=.d)\
49                $(CFILES:.c=.cd)
50               
51               
Note: See TracBrowser for help on using the repository browser.