Commit 1f54fea 1 parent 6e95fb8 commit 1f54fea Copy full SHA for 1f54fea
File tree 1 file changed +6
-12
lines changed
1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 1
1
# Use bash syntax for all shell commands
2
2
export SHELL := /bin/bash
3
3
4
- $(info ${SHELL})
5
- $(info ${PATH})
6
- $(info $(shell which gcc))
7
- $(info $(shell which cc))
8
-
9
4
# Where to install.
10
5
prefix ?= /usr/local
11
6
@@ -20,13 +15,6 @@ debug : CFLAGS+=-g -fsanitize=address -Wall -Wno-unused-function
20
15
debug : LDLIBS+=-lasan
21
16
debug : all
22
17
23
- flex := flex
24
- ifeq (${OS},Windows_NT)
25
- export PATH := ${PATH}:"C:/Program Files/Git/usr/bin"
26
- $(info $(shell which cc))
27
- flex := win_flex
28
- endif
29
-
30
18
# Rule to automatically run flex to create .c files from .lex.
31
19
.SUFFIXES : .lex
32
20
.lex.c :
@@ -130,6 +118,12 @@ cfiles: $(addsuffix .c, ${targets})
130
118
# ###############################################################
131
119
# Machine dependent jank
132
120
121
+ flex := flex
122
+ ifeq (${OS},Windows_NT)
123
+ flex := win_flex
124
+ CC := gcc
125
+ endif
126
+
133
127
# GNU tar lets us easily store files into a subdirectory in the archive.
134
128
# Unfortunately, MacOS is recalcitrant.
135
129
UNAME := $(shell uname)
You can’t perform that action at this time.
0 commit comments