qzdoom/tools/makewad/Makefile.mgw
Randy Heit 75aec5dde9 GCC fixes: (courtesy of Jim and zloba)
- 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)
2006-04-29 04:52:30 +00:00

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