File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ include ../config/Makefile
20
20
CC =$(BYTECC )
21
21
CFLAGS =-DNDEBUG $(BYTECCCOMPOPTS )
22
22
23
+ ifeq "$(TOOLCHAIN ) " "mingw"
24
+ CFLAGS += -DNO_UNIX
25
+ else ifeq "$(TOOLCHAIN)" "msvc"
26
+ CFLAGS += -DNO_UNIX
27
+ endif
28
+
23
29
OBJS = closure.$(O ) error.$(O ) lalr.$(O ) lr0.$(O ) main.$(O ) \
24
30
mkpar.$(O ) output.$(O ) reader.$(O ) \
25
31
skeleton.$(O ) symtab.$(O ) verbose.$(O ) warshall.$(O )
@@ -49,3 +55,9 @@ skeleton.$(O): defs.h
49
55
symtab.$(O ) : defs.h
50
56
verbose.$(O ) : defs.h
51
57
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 $<
Original file line number Diff line number Diff line change 14
14
#**************************************************************************
15
15
16
16
include Makefile
17
-
18
- %.$(O): %.c
19
- $(BYTECC) -DNDEBUG -DNO_UNIX $(BYTECCCOMPOPTS) -c $<
You can’t perform that action at this time.
0 commit comments