mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-19 19:01:24 +00:00
6cd1e2ce6a
memcpy to copy the player structures. - Fixed compilation with MinGW again and removed most of the new warnings. And following is the log that I forgot to paste in for the previous commit: - Changed the memory management for FString. Instead of using a garbage collected heap, it now uses normal heap calls and reference counting to implement lazy copying. You may now use bitwise operators to move (but not copy!) FStrings around in memory. This means that the CopyForTArray template function is gone, since TArrays can now freely move their contents around without bothering with their specifics. There is one important caveat, however. It is not acceptable to blindly 0 an FString's contents. This necessitated the creation of a proper constructor for player_s so that it can be reset without using memset. I did a quick scan of all memsets in the source and didn't see anything else with a similar problem, but it's possible I missed something. - Fixed: Build tiles were never deallocated. - Fixed: Using Build's palette.dat only got half the palette right. SVN r117 (trunk)
41 lines
688 B
Makefile
41 lines
688 B
Makefile
ifeq (Windows_NT,$(OS))
|
|
EXE = makewad.exe
|
|
CCDV = @../../ccdv
|
|
CFLAGS = -Os -Wall -fomit-frame-pointer
|
|
LDFLAGS = -L../../zlib/ -lz
|
|
ZLIB = ../../zlib/libz.a
|
|
else
|
|
EXE = makewad
|
|
CCDV =
|
|
CFLAGS = -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -Os -Wall -fomit-frame-pointer
|
|
LDFLAGS = -lz
|
|
ZLIB =
|
|
endif
|
|
|
|
CC = gcc
|
|
|
|
OBJS = makewad.o ioapi.o zip.o
|
|
|
|
all: $(EXE)
|
|
|
|
.c.o:
|
|
$(CCDV) $(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
$(EXE): $(OBJS) $(ZLIB)
|
|
$(CCDV) $(CC) -o $(EXE) $(OBJS) $(LDFLAGS)
|
|
|
|
ifeq (Windows_NT,$(OS))
|
|
$(ZLIB):
|
|
make -C ../../zlib -f Makefile.mgw
|
|
endif
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
ifeq (Windows_NT,$(OS))
|
|
-del /q /f $(EXE) 2>nul
|
|
-del /q /f *.o 2>nul
|
|
else
|
|
-rm -f $(EXE)
|
|
-rm -f *.o
|
|
endif
|