Skip to content

Commit d917ff6

Browse files
shinderealainfrisch
authored andcommitted
Merge Makefile.nt into Makefile in the yacc directory. (ocaml#762)
yacc/Makefile has been changed so that it also works on Windows.
1 parent 185a8ac commit d917ff6

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

yacc/Makefile

+12
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ include ../config/Makefile
2020
CC=$(BYTECC)
2121
CFLAGS=-DNDEBUG $(BYTECCCOMPOPTS)
2222

23+
ifeq "$(TOOLCHAIN)" "mingw"
24+
CFLAGS += -DNO_UNIX
25+
else ifeq "$(TOOLCHAIN)" "msvc"
26+
CFLAGS += -DNO_UNIX
27+
endif
28+
2329
OBJS= closure.$(O) error.$(O) lalr.$(O) lr0.$(O) main.$(O) \
2430
mkpar.$(O) output.$(O) reader.$(O) \
2531
skeleton.$(O) symtab.$(O) verbose.$(O) warshall.$(O)
@@ -49,3 +55,9 @@ skeleton.$(O): defs.h
4955
symtab.$(O): defs.h
5056
verbose.$(O): defs.h
5157
warshall.$(O): defs.h
58+
59+
# The following rule is similar to make's default one, except that it
60+
# also works for .obj files.
61+
62+
%.$(O): %.c
63+
$(CC) $(CFLAGS) -c $<

yacc/Makefile.nt

-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,3 @@
1414
#**************************************************************************
1515

1616
include Makefile
17-
18-
%.$(O): %.c
19-
$(BYTECC) -DNDEBUG -DNO_UNIX $(BYTECCCOMPOPTS) -c $<

0 commit comments

Comments
 (0)