Dash:
[t2.git] / misc / luabash / cf / Rules.pre
blob77602857e98c133523674de7e325a1d2f158d061
1 # -*- makefile -*-
3 # include config if present
4 -include $(topdir)/Config
6 # Paths
7 prefix           = /usr
8 exec_prefix      = $(prefix)
10 includedir       = $(prefix)/include
11 libdir           = $(prefix)/lib
12 libexecdir       = $(exec_prefix)/libexec
13 datadir          = $(prefix)/share
14 sysconfdir       = $(prefix)/etc
15 localstatedir    = $(prefix)/var
16 infodir          = $(prefix)/info
17 mandir           = $(prefix)/man
19 pkgdatadir       = $(datadir)/moe/$(PACKAGE_MAJOR).$(PACKAGE_MINOR)
20 pkglibdir        = $(libdir)/moe/$(PACKAGE_MAJOR).$(PACKAGE_MINOR)
21 pkgincludedir    = $(includedir)/moe
23 # defaults
24 CC               = $(CROSS_COMPILE)gcc
25 AR               = $(CROSS_COMPILE)ar
27 ifeq ($(DEBUG),1)
28   DFLAGS         = -ggdb -O2 -DDEBUG
29 endif
30 ifeq ($(PROFILE),1)
31   PFLAGS         = -pg
32 endif
33 ifneq ($(DEBUG),1)
34   ifneq ($(PROFILE),1)
35     OPTFLAGS     = -Os -s
36   endif
37 endif
39 CFLAGS          += -pipe $(OPTFLAGS) $(DFLAGS) $(PFLAGS)
40 override CFLAGS += -std=c99 -Wall -finline
41 LDFLAGS         += -pipe $(OPTFLAGS) $(DFLAGS) $(PFLAGS)
42 CPPFLAGS        += 
43 DEFS            +=
44 PICFLAGS         = -fPIC
45 INCLUDES         = -I.
46 LIBS             =