File: dmake.ini

package info (click to toggle)
tf5 5.0beta8-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,800 kB
  • ctags: 3,102
  • sloc: ansic: 25,492; perl: 103; makefile: 82; sh: 79
file content (71 lines) | stat: -rw-r--r-- 1,255 bytes parent folder | download | duplicates (17)
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
# dmake.ini
.NOTABS   := yes
__.SILENT := $(.SILENT)
.SILENT   := yes

.IMPORT: COMSPEC
.IMPORT .IGNORE: MAKE_SH

DIRSEPSTR   := /

#
# Do not define MAKE_SH if you want to use the standard command processor
#
.IF $(MAKE_SH) == $(NULL)

SHELL       := $(COMSPEC)
SHELLFLAGS  := /c
GROUPFLAGS  := $(SHELLFLAGS)
SHELLMETAS  := *"?<>|&
DIVFILE      = $(TMPFILE:s,/,\)

.IF $(COMSPEC:s,.,/,:f) == COM
GROUPSUFFIX := .bat
.ELIF $(COMSPEC:s,.,/,:f) == com
GROUPSUFFIX := .bat
.ELSE
GROUPSUFFIX := .cmd
.END

#
# Define MAKE_SH (path name) to use a Unix-like shell
#
.ELSE

SHELL       := $(MAKE_SH)
SHELLFLAGS  := -c
GROUPFLAGS  :=
SHELLMETAS  := *"?<>|()&][$$\#`'
GROUPSUFFIX := .sh
DIVFILE      = $(TMPFILE:s,/,${DIVSEP_shell_${USESHELL}})
DIVSEP_shell_yes := \\\
DIVSEP_shell_no  := \\

.END

GROUPSHELL  := $(SHELL)

.USESHELL :

CC          := gcc
AS          := as
LD          := gcc
AR          := ar
RANLIB      := ar s
RM          := del
YACC        := bison
LEX         := flex

MAKE         = $(MAKECMD) $(MFLAGS)

%.o : %.c ; $(CC) $(CFLAGS) -o $@ -c $<

%.o : %.s ; $(AS) $(ASFLAGS) -o $@ $<

%.exe : %.o ; $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS)

%.c : %.y ; $(YACC) -o $@ $(YFLAGS) $<

%.c : %.l ; $(LEX)  -o $@ $(LFLAGS) $<

.SILENT := $(__.SILENT)