mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-16 01:11:50 +00:00
ea0c7395de
.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)
33 lines
457 B
Makefile
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
|