-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.Config
88 lines (79 loc) · 3.05 KB
/
Makefile.Config
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# ---------------------------------------------------------------------------
#
# SAC Compiler Construction Framework
#
# ---------------------------------------------------------------------------
#
# SAC COPYRIGHT NOTICE, LICENSE, AND DISCLAIMER
#
# (c) Copyright 1994 - 2010 by
#
# SAC Development Team
# SAC Research Foundation
#
# http://www.sac-home.org
# email:info@sac-home.org
#
# All rights reserved
#
# ---------------------------------------------------------------------------
#
# The SAC compiler construction framework, all accompanying
# software and documentation (in the following named this software)
# is developed by the SAC Development Team (in the following named
# the developer) which reserves all rights on this software.
#
# Permission to use this software is hereby granted free of charge
# exclusively for the duration and purpose of the course
# "Compilers and Operating Systems"
# of the MSc programme Grid Computing at the University of Amsterdam.
# Redistribution of the software or any parts thereof as well as any
# alteration of the software or any parts thereof other than those
# required to use the compiler construction framework for the purpose
# of the above mentioned course are not permitted.
#
# The developer disclaims all warranties with regard to this software,
# including all implied warranties of merchantability and fitness. In no
# event shall the developer be liable for any special, indirect or
# consequential damages or any damages whatsoever resulting from loss of
# use, data, or profits, whether in an action of contract, negligence, or
# other tortuous action, arising out of or in connection with the use or
# performance of this software. The entire risk as to the quality and
# performance of this software is with you. Should this software prove
# defective, you assume the cost of all servicing, repair, or correction.
#
# ---------------------------------------------------------------------------
#
################################################################################
#
# general setup:
#
CC := gcc
CCPROD := gcc
CCFLAGS := -Wall -g -std=c99 -fPIC -DPIC -D_POSIX_SOURCE -D_DEFAULT_SOURCE -Dlint
CCDEPS_FLAGS := -M $(CCFLAGS)
CCPROD_FLAGS := -Wall -g -O3 -std=c99 -fPIC -DPIC -D_POSIX_SOURCE -D_DEFAULT_SOURCE -Dlint
MAKE_NORM := $(MAKE) CC="$(CC)" CCFLAGS="$(CCFLAGS)"
MAKE_CLEAN := $(MAKE) TARGET="clean" clean
MAKEFLAGS += --no-print-directory
EXCLUDE_INCS := xml
INCS := -I../../inc \
$(patsubst %,-I../%,$(filter-out $(EXCLUDE_INCS),\
$(notdir $(wildcard ../*))))
LIBS := -ldl -lm
OS := $(shell uname)
ifeq ($(OS), Darwin)
LIBS += -ll
CCFLAGS += -D_C99_SOURCE
CCPRODFLAGS += -D_C99_SOURCE
else
LIBS += -lfl
endif
RM := rm -f
GZIP := gzip -f
ECHO := echo
LEX := flex -n
YACC := bison -y -dv
XSLTENGINE := xsltproc
DOT := dot
INDENT := indent