File: Makefile.std

package info (click to toggle)
concavity 0.1%2Bdfsg.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,988 kB
  • sloc: cpp: 40,945; makefile: 143; sh: 38
file content (59 lines) | stat: -rw-r--r-- 663 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
# Makefile setup for GAPS
#



#
# Targets
#

OBJS=$(CCSRCS:.C=.o) $(CSRCS:.c=.o) 
INCS=$(HSRCS) $(CCSRCS:.C=.h) $(CSRCS:.c=.h)



#
# C flags
#

CXX=g++
BASE_CFLAGS=$(USER_CFLAGS) -Wall -I. -I../../pkgs 
DEBUG_CFLAGS=$(BASE_CFLAGS) -g
OPT_CFLAGS=$(BASE_CFLAGS) -O3 -DNDEBUG
CFLAGS:=$(DEBUG_CFLAGS) $(CFLAGS)



#
# Get the operating system and architecture type
#

OS=$(shell uname -o)
KERN=$(shell uname -s)
ARCH=$(shell uname -m)



#
# Directories
#

RELEASE_DIR=../../release
EXE_DIR=../../bin/$(ARCH)
LIB_DIR=../../lib/$(ARCH)



#
# Default rules
#

.SUFFIXES: .c .C .o

.C.o:
	$(CXX) $(CPPFLAGS) $(CFLAGS) -c $<

.c.o:
	gcc $(CPPFLAGS) $(CFLAGS) -c $<