mirror of
https://github.com/yquake2/xatrix.git
synced 2024-11-12 23:54:30 +00:00
Makefile fix for Windows and gitignore now ignores the release folder
This commit is contained in:
parent
cfb3e7abf0
commit
73c9584af2
2 changed files with 7 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
/build/
|
/build/
|
||||||
|
/release/
|
7
Makefile
7
Makefile
|
@ -28,6 +28,11 @@ endif
|
||||||
ifneq (,$(findstring MINGW,$(OSTYPE)))
|
ifneq (,$(findstring MINGW,$(OSTYPE)))
|
||||||
OSTYPE := Windows
|
OSTYPE := Windows
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# On Windows / MinGW $(CC) is undefined by default.
|
||||||
|
ifeq ($(OSTYPE),Windows)
|
||||||
|
CC := gcc
|
||||||
|
endif
|
||||||
|
|
||||||
# Detect the architecture
|
# Detect the architecture
|
||||||
ifeq ($(OSTYPE), Windows)
|
ifeq ($(OSTYPE), Windows)
|
||||||
|
@ -78,7 +83,7 @@ ifeq ($(OSTYPE), Darwin)
|
||||||
CFLAGS := -O2 -fno-strict-aliasing -fomit-frame-pointer \
|
CFLAGS := -O2 -fno-strict-aliasing -fomit-frame-pointer \
|
||||||
-Wall -pipe -g -fwrapv -arch i386 -arch x86_64
|
-Wall -pipe -g -fwrapv -arch i386 -arch x86_64
|
||||||
else
|
else
|
||||||
CFLAGS := -O2 -fno-strict-aliasing -fomit-frame-pointer \
|
CFLAGS := -std=gnu99 -O2 -fno-strict-aliasing -fomit-frame-pointer \
|
||||||
-Wall -pipe -g -MMD -fwrapv
|
-Wall -pipe -g -MMD -fwrapv
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue