2007-02-03 02:51:13 +00:00
|
|
|
ifeq (Windows_NT,$(OS))
|
|
|
|
WIN=1
|
|
|
|
WINCMD=1
|
|
|
|
endif
|
2008-02-10 01:21:45 +00:00
|
|
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
2007-02-03 02:51:13 +00:00
|
|
|
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
|