mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-12 15:44:10 +00:00
95180e18e6
already. For some reason, a stock install of MinGW doesn't define it, but if you compile your own GCC, it installs headers that do. - Changed the way that the makefiles detect MSYS to a method that should be more foolproof, thanks to changes in MSYS. SVN r737 (trunk)
33 lines
494 B
Makefile
33 lines
494 B
Makefile
ifeq (Windows_NT,$(OS))
|
|
WIN=1
|
|
WINCMD=1
|
|
endif
|
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
|
WIN=1
|
|
WINCMD=0
|
|
endif
|
|
|
|
ifeq (1,$(WIN))
|
|
EXE = fixrtext.exe
|
|
CFLAGS = $(LOC) -D_WIN32 -Os -Wall -fomit-frame-pointer
|
|
else
|
|
# This is only useful for Win32 builds.
|
|
endif
|
|
|
|
CCDV = @../../ccdv
|
|
CC = gcc
|
|
LDFLAGS = -s
|
|
|
|
all: $(EXE)
|
|
|
|
$(EXE): fixrtext.c
|
|
$(CCDV) $(CC) $(LDFLAGS) -o $(EXE) fixrtext.c
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
ifeq (1,$(WINCMD))
|
|
-del /q /f $(EXE) 2>nul
|
|
else
|
|
rm -f $(EXE)
|
|
endif
|