Upgraded ccdv-win32.c and the Makefiles so that they are fully functional under MSYS.
SVN r286 (trunk)
This commit is contained in:
parent
b8312a9bd8
commit
55e299e4b3
14 changed files with 330 additions and 118 deletions
|
|
@ -1,13 +1,21 @@
|
|||
ifeq (Windows_NT,$(OS))
|
||||
ifeq (Windows_NT,$(OS))
|
||||
WIN=1
|
||||
WINCMD=1
|
||||
endif
|
||||
ifeq (msys,$(OSTYPE))
|
||||
WIN=1
|
||||
WINCMD=0
|
||||
endif
|
||||
|
||||
ifeq (1,$(WIN))
|
||||
EXE = re2c.exe
|
||||
CCDV = @../../ccdv
|
||||
CXXFLAGS = $(LOC) -D_WIN32 -DNDEBUG -Os -Wall -Wno-unused
|
||||
else
|
||||
EXE = re2c
|
||||
CCDV = @../../ccdv
|
||||
CXXFLAGS = -DHAVE_CONFIG_H -DNDEBUG -Os -Wall -Wno-unused
|
||||
endif
|
||||
|
||||
CCDV = @../../ccdv
|
||||
CXX = g++
|
||||
LDFLAGS= -s
|
||||
|
||||
|
|
@ -24,7 +32,7 @@ $(EXE): $(OBJS)
|
|||
.PHONY: clean
|
||||
|
||||
clean:
|
||||
ifeq (Windows_NT,$(OS))
|
||||
ifeq (1,$(WINCMD))
|
||||
-del /q /f $(EXE) 2>nul
|
||||
-del /q /f *.o 2>nul
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue