2006-04-29 04:52:30 +00:00
|
|
|
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
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
|
2006-04-29 04:52:30 +00:00
|
|
|
OBJS = makewad.o ioapi.o zip.o
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
all: $(EXE)
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CCDV) $(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
$(EXE): $(OBJS)
|
2006-04-29 04:52:30 +00:00
|
|
|
$(CCDV) $(CC) $(LDFLAGS) -o $(EXE) $(OBJS)
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
2006-04-29 04:52:30 +00:00
|
|
|
ifeq (Windows_NT,$(OS))
|
2006-02-24 04:48:15 +00:00
|
|
|
-del /q /f $(EXE) 2>nul
|
|
|
|
-del /q /f *.o 2>nul
|
2006-04-29 04:52:30 +00:00
|
|
|
else
|
|
|
|
-rm -f $(EXE)
|
|
|
|
-rm -f *.o
|
|
|
|
endif
|