gzdoom-gles/tools/fixrtext/Makefile
Randy Heit ea0c7395de - Added a new fixrtext tool that sets the IMAGE_SCN_MEM_WRITE flag for
.rtext files in the assembly object files. Now I can avoid doing this at
  runtime, which means that ZDoom is now UPX-compatible if anyone wants to
  pack it.
  
  You will need to do a rebuild or manually delete the old assembly .obj files
  for the first build from this revision to succeed, since there are no
  changes to the assembly files themselves, and the build process will not be
  able to automatically detect that they need to be rebuilt.


SVN r473 (trunk)
2007-02-03 02:51:13 +00:00

33 lines
457 B
Makefile

ifeq (Windows_NT,$(OS))
WIN=1
WINCMD=1
endif
ifeq (msys,$(OSTYPE))
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