mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-19 10:51:26 +00:00
75aec5dde9
- default.cbd was missing thingdef_exp.cpp - tools/makewad/Makefile.mgw was outdated thanks to recently added zip support - wadsrc/wadmake should not be in the repository, as it needs to use host machine path separator conventions SVN r69 (trunk)
34 lines
568 B
Text
34 lines
568 B
Text
ifeq (Windows_NT,$(OS))
|
|
EXE = makewad.exe
|
|
CCDV = @../../ccdv
|
|
CFLAGS = -Os -Wall -fomit-frame-pointer
|
|
LDFLAGS = -L../../zlib/ -lz
|
|
else
|
|
EXE = makewad
|
|
CCDV =
|
|
CFLAGS = -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -Os -Wall -fomit-frame-pointer
|
|
LDFLAGS = -lz
|
|
endif
|
|
|
|
CC = gcc
|
|
|
|
OBJS = makewad.o ioapi.o zip.o
|
|
|
|
all: $(EXE)
|
|
|
|
.c.o:
|
|
$(CCDV) $(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
$(EXE): $(OBJS)
|
|
$(CCDV) $(CC) $(LDFLAGS) -o $(EXE) $(OBJS)
|
|
|
|
.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
|