mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-23 20:42:24 +00:00
95180e18e6
already. For some reason, a stock install of MinGW doesn't define it, but if you compile your own GCC, it installs headers that do. - Changed the way that the makefiles detect MSYS to a method that should be more foolproof, thanks to changes in MSYS. SVN r737 (trunk)
42 lines
593 B
Makefile
42 lines
593 B
Makefile
ifeq (Windows_NT,$(OS))
|
|
WIN=1
|
|
WINCMD=1
|
|
endif
|
|
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
|
|
WIN=1
|
|
WINCMD=0
|
|
endif
|
|
|
|
CC = gcc
|
|
CFLAGS = -Os -Wall -fomit-frame-pointer
|
|
LDFLAGS = -s
|
|
|
|
OBJS = updaterevision.o
|
|
|
|
ifeq (1,$(WIN))
|
|
EXE = updaterevision.exe
|
|
OBJS += trustinfo.o
|
|
else
|
|
EXE = updaterevision
|
|
endif
|
|
|
|
CCDV = @../../ccdv
|
|
|
|
all: $(EXE)
|
|
|
|
$(EXE): $(OBJS)
|
|
$(CCDV) $(CC) -o $(EXE) $(OBJS) $(CFLAGS) $(LDFLAGS)
|
|
|
|
%.o : %.rc
|
|
$(CCDV) windres -o $@ -i $<
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
ifeq (1,$(WINCMD))
|
|
-del /q /f $(EXE) 2>nul
|
|
-del /q /f *.o 2>nul
|
|
else
|
|
-rm -f $(EXE)
|
|
-rm -f *.o
|
|
endif
|