source: Make/Makedefs @ 12

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