mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 13:31:37 +00:00
ec17f5a5b9
error handling. - Fixed: dehsupp/scanner.re defined "}" as the token RPAREN. dehsupp/parse.y also defined action_list_def as needing a RBARCE. I'm surprised it worked at all before. I guess Lemon really was too accepting. - Changed the way that xlatcc handles include statements so that I don't need to modify the logic of lempar.c. I also discovered that the grammar was improperly defined and only accepted the first statement. It worked before because Lemon used to accept multiple times before reaching the EOF token. I have also verified that it is still generating the proper lumps. - Removed some unused wadsrc files from the repository. - Fixed my re2c upgrade. - Updated lemon.c to v1.53. SVN r711 (trunk)
51 lines
836 B
Makefile
51 lines
836 B
Makefile
ifeq (Windows_NT,$(OS))
|
|
WIN=1
|
|
WINCMD=1
|
|
endif
|
|
ifeq (msys,$(OSTYPE))
|
|
WIN=1
|
|
WINCMD=0
|
|
endif
|
|
|
|
ifeq (1,$(WIN))
|
|
EXE = re2c.exe
|
|
CXXFLAGS = $(LOC) -D_WIN32 -DNDEBUG -Os -Wall -Wno-unused
|
|
else
|
|
EXE = re2c
|
|
CXXFLAGS = -DHAVE_CONFIG_H -DNDEBUG -Os -Wall -Wno-unused
|
|
endif
|
|
|
|
CCDV = @../../ccdv
|
|
CXX = g++
|
|
LDFLAGS= -s
|
|
|
|
OBJS = actions.o code.o dfa.o main.o mbo_getopt.o parser.o scanner.o substr.o translate.o
|
|
|
|
all: $(EXE)
|
|
|
|
.cc.o:
|
|
$(CCDV) $(CXX) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
$(EXE): $(OBJS)
|
|
$(CCDV) $(CXX) $(LDFLAGS) -o $(EXE) $(OBJS)
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
ifeq (1,$(WINCMD))
|
|
-del /q /f $(EXE) 2>nul
|
|
-del /q /f *.o 2>nul
|
|
else
|
|
rm -f $(EXE)
|
|
rm -f *.o
|
|
endif
|
|
|
|
actions.o: actions.cc
|
|
code.o: code.cc
|
|
dfa.o: dfa.cc
|
|
main.o: main.cc
|
|
mbo_getopt.o: mbo_getopt.cc
|
|
parser.o: parser.cc
|
|
scanner.o: scanner.cc
|
|
substr.o: substr.cc
|
|
translate.o: translate.cc
|