gzdoom-gles/tools/makewad/Makefile
Randy Heit 0c62f08a58 - Modified Makefile.linux to use ccdv for easier error spotting and to
make the dependancy files at the same time it makes the object files.


SVN r180 (trunk)
2006-06-08 02:43:35 +00:00

41 lines
705 B
Makefile

ifeq (Windows_NT,$(OS))
EXE = makewad.exe
CCDV = @../../ccdv
CFLAGS = -Os -Wall -fomit-frame-pointer
LDFLAGS = -s -L../../zlib/ -lz
ZLIB = ../../zlib/libz.a
else
EXE = makewad
CCDV = @../../ccdv
CFLAGS = -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -Os -Wall -fomit-frame-pointer
LDFLAGS = -s -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