mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@1102 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
6ae2e2d140
commit
91354444aa
3 changed files with 65 additions and 63 deletions
|
@ -227,59 +227,59 @@ include Makefile.deps
|
||||||
|
|
||||||
# RULES
|
# RULES
|
||||||
$(OBJ)/%.$o: $(SRC)/%.nasm
|
$(OBJ)/%.$o: $(SRC)/%.nasm
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
if $(AS) $(ASFLAGS) $< -o $@; then \
|
if $(AS) $(ASFLAGS) $< -o $@; then \
|
||||||
${COMPILE_OK}; \
|
$(COMPILE_OK); \
|
||||||
else \
|
else \
|
||||||
${COMPILE_FAILED}; \
|
$(COMPILE_FAILED); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(OBJ)/%.$o: $(SRC)/%.c
|
$(OBJ)/%.$o: $(SRC)/%.c
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
||||||
${COMPILE_OK}; \
|
$(COMPILE_OK); \
|
||||||
else \
|
else \
|
||||||
${COMPILE_FAILED}; \
|
$(COMPILE_FAILED); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(OBJ)/%.$o: $(SRC)/%.m
|
$(OBJ)/%.$o: $(SRC)/%.m
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
||||||
${COMPILE_OK}; \
|
$(COMPILE_OK); \
|
||||||
else \
|
else \
|
||||||
${COMPILE_FAILED}; \
|
$(COMPILE_FAILED); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(OBJ)/%.$o: $(SRC)/%.cpp
|
$(OBJ)/%.$o: $(SRC)/%.cpp
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
if $(CXX) $(CXXFLAGS) $(OURCXXFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
if $(CXX) $(CXXFLAGS) $(OURCXXFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
||||||
${COMPILE_OK}; \
|
$(COMPILE_OK); \
|
||||||
else \
|
else \
|
||||||
${COMPILE_FAILED}; \
|
$(COMPILE_FAILED); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(OBJ)/%.$o: $(SRC)/misc/%.rc
|
$(OBJ)/%.$o: $(SRC)/misc/%.rc
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
if $(RC) -i $< -o $@ --include-dir=$(INC) --include-dir=$(SRC); then \
|
if $(RC) -i $< -o $@ --include-dir=$(INC) --include-dir=$(SRC); then \
|
||||||
${COMPILE_OK}; \
|
$(COMPILE_OK); \
|
||||||
else \
|
else \
|
||||||
${COMPILE_FAILED}; \
|
$(COMPILE_FAILED); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(OBJ)/%.$o: $(SRC)/util/%.c
|
$(OBJ)/%.$o: $(SRC)/util/%.c
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
||||||
${COMPILE_OK}; \
|
$(COMPILE_OK); \
|
||||||
else \
|
else \
|
||||||
${COMPILE_FAILED}; \
|
$(COMPILE_FAILED); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(OBJ)/%.$o: $(RSRC)/%.c
|
$(OBJ)/%.$o: $(RSRC)/%.c
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
||||||
${COMPILE_OK}; \
|
$(COMPILE_OK); \
|
||||||
else \
|
else \
|
||||||
${COMPILE_FAILED}; \
|
$(COMPILE_FAILED); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(OBJ)/editor_banner.$o: $(RSRC)/editor_banner.c
|
$(OBJ)/editor_banner.$o: $(RSRC)/editor_banner.c
|
||||||
|
|
|
@ -177,12 +177,12 @@ ifneq (0,$(POLYMER))
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BUILD_STARTED = printf "\033[K\033[1;36mBuild started with $($OURCFLAGS)\033[0m\n"
|
BUILD_STARTED = printf "\033[K\033[1;36mBuild started with $(CC) $(OURCFLAGS)\033[0m\n"
|
||||||
BUILD_FINISHED = printf "\033[K\033[1;36mBuild successful.\033[0m\n"
|
BUILD_FINISHED = printf "\033[K\033[1;36mBuild successful:\033[0m\n"
|
||||||
COMPILE_STATUS = printf "\033[K\033[0;33mCompiling \033[1;33m$<\033[0;33m...\033[0m\r"
|
COMPILE_STATUS = printf "\033[K\033[0;37mCompiling \033[1;37m$<\033[0;37m...\033[0m\r"
|
||||||
COMPILE_OK = printf "\033[K\033[0;32mSuccessfully compiled \033[1;32m$<\033[0;32m.\033[0m\n"
|
COMPILE_OK = printf "\033[K\033[0;32mCompiled \033[1;32m$<\033[0;32m.\033[0m\n"
|
||||||
COMPILE_FAILED = printf "\033[K\033[0;31mFailed to compile \033[1;31m$<\033[0;31m!\033[0m\n"; exit 1
|
COMPILE_FAILED = printf "\033[K\033[0;31mFailed compiling \033[1;31m$<\033[0;31m!\033[0m\n"; exit 1
|
||||||
LINK_STATUS = printf "\033[K\033[0;33mLinking \033[1;33m$@\033[0;33m...\033[0m\r"
|
LINK_STATUS = printf "\033[K\033[0;37mLinking \033[1;37m$@\033[0;37m...\033[0m\r"
|
||||||
LINK_OK = printf "\033[K\033[0;32mSuccessfully linked \033[1;32m$@\033[0;32m.\033[0m\n"
|
LINK_OK = printf "\033[K\033[0;32mLinked \033[1;32m$@\033[0;32m.\033[0m\n"
|
||||||
LINK_FAILED = printf "\033[K\033[0;31mFailed to link \033[1;31m$@\033[0;31m!\033[0m\n"; exit 1
|
LINK_FAILED = printf "\033[K\033[0;31mFailed linking \033[1;31m$@\033[0;31m!\033[0m\n"; exit 1
|
||||||
|
|
||||||
|
|
|
@ -242,39 +242,41 @@ all: notice eduke32$(EXESUFFIX) mapster32$(EXESUFFIX)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all:
|
all:
|
||||||
${BUILD_FINISHED}
|
$(BUILD_FINISHED)
|
||||||
|
@ls -l eduke32$(EXESUFFIX)
|
||||||
|
@ls -l mapster32$(EXESUFFIX)
|
||||||
|
|
||||||
notice:
|
notice:
|
||||||
${BUILD_STARTED}
|
$(BUILD_STARTED)
|
||||||
|
|
||||||
eduke32$(EXESUFFIX): $(GAMEOBJS) $(EOBJ)/$(ENGINELIB)
|
eduke32$(EXESUFFIX): $(GAMEOBJS) $(EOBJ)/$(ENGINELIB)
|
||||||
${LINK_STATUS}
|
$(LINK_STATUS)
|
||||||
if $(CC) -o $@ $^ $(LIBS) $(STDCPPLIB); then \
|
if $(CC) -o $@ $^ $(LIBS) $(STDCPPLIB); then \
|
||||||
${LINK_OK}; \
|
$(LINK_OK); \
|
||||||
else \
|
else \
|
||||||
${LINK_FAILED}; \
|
$(LINK_FAILED); \
|
||||||
fi
|
fi
|
||||||
ifeq (1,$(RELEASE))
|
ifeq (1,$(RELEASE))
|
||||||
strip eduke32$(EXESUFFIX)
|
strip eduke32$(EXESUFFIX)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
mapster32$(EXESUFFIX): $(EDITOROBJS) $(EOBJ)/$(EDITORLIB) $(EOBJ)/$(ENGINELIB)
|
mapster32$(EXESUFFIX): $(EDITOROBJS) $(EOBJ)/$(EDITORLIB) $(EOBJ)/$(ENGINELIB)
|
||||||
${LINK_STATUS}
|
$(LINK_STATUS)
|
||||||
if $(CC) $(CFLAGS) $(OURCFLAGS) -o $@ $^ $(LIBS); then \
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -o $@ $^ $(LIBS); then \
|
||||||
${LINK_OK}; \
|
$(LINK_OK); \
|
||||||
else \
|
else \
|
||||||
${LINK_FAILED}; \
|
$(LINK_FAILED); \
|
||||||
fi
|
fi
|
||||||
ifeq (1,$(RELEASE))
|
ifeq (1,$(RELEASE))
|
||||||
strip mapster32$(EXESUFFIX)
|
strip mapster32$(EXESUFFIX)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
duke3d_w32$(EXESUFFIX): $(OBJ)/wrapper.$o
|
duke3d_w32$(EXESUFFIX): $(OBJ)/wrapper.$o
|
||||||
${LINK_STATUS}
|
$(LINK_STATUS)
|
||||||
if $(CC) $(CFLAGS) $(OURCFLAGS) -o $@ $^ -Wl; then \
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -o $@ $^ -Wl; then \
|
||||||
${LINK_OK}; \
|
$(LINK_OK); \
|
||||||
else \
|
else \
|
||||||
${LINK_FAILED}; \
|
$(LINK_FAILED); \
|
||||||
fi
|
fi
|
||||||
ifeq (1,$(RELEASE))
|
ifeq (1,$(RELEASE))
|
||||||
strip duke3d_w32$(EXESUFFIX)
|
strip duke3d_w32$(EXESUFFIX)
|
||||||
|
@ -295,65 +297,65 @@ $(EOBJ)/$(EDITORLIB): editorlib
|
||||||
|
|
||||||
# RULES
|
# RULES
|
||||||
$(OBJ)/%.$o: $(SRC)/%.nasm
|
$(OBJ)/%.$o: $(SRC)/%.nasm
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
nasm $(NASMFLAGS) $< -o $@
|
nasm $(NASMFLAGS) $< -o $@
|
||||||
$(OBJ)/%.$o: $(SRC)/jaudiolib/%.nasm
|
$(OBJ)/%.$o: $(SRC)/jaudiolib/%.nasm
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
nasm $(NASMFLAGS) $< -o $@
|
nasm $(NASMFLAGS) $< -o $@
|
||||||
|
|
||||||
$(OBJ)/%.$o: $(SRC)/%.c
|
$(OBJ)/%.$o: $(SRC)/%.c
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
||||||
${COMPILE_OK}; \
|
$(COMPILE_OK); \
|
||||||
else \
|
else \
|
||||||
${COMPILE_FAILED}; \
|
$(COMPILE_FAILED); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(OBJ)/%.$o: $(SRC)/%.cpp
|
$(OBJ)/%.$o: $(SRC)/%.cpp
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
if $(CXX) $(CXXFLAGS) $(OURCXXFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
if $(CXX) $(CXXFLAGS) $(OURCXXFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
||||||
${COMPILE_OK}; \
|
$(COMPILE_OK); \
|
||||||
else \
|
else \
|
||||||
${COMPILE_FAILED}; \
|
$(COMPILE_FAILED); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(OBJ)/%.$o: $(SRC)/jmact/%.c
|
$(OBJ)/%.$o: $(SRC)/jmact/%.c
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
||||||
${COMPILE_OK}; \
|
$(COMPILE_OK); \
|
||||||
else \
|
else \
|
||||||
${COMPILE_FAILED}; \
|
$(COMPILE_FAILED); \
|
||||||
fi
|
fi
|
||||||
$(OBJ)/%.$o: $(SRC)/jaudiolib/%.c
|
$(OBJ)/%.$o: $(SRC)/jaudiolib/%.c
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
||||||
${COMPILE_OK}; \
|
$(COMPILE_OK); \
|
||||||
else \
|
else \
|
||||||
${COMPILE_FAILED}; \
|
$(COMPILE_FAILED); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(OBJ)/%.$o: $(SRC)/misc/%.rc
|
$(OBJ)/%.$o: $(SRC)/misc/%.rc
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
if windres -i $< -o $@ --include-dir=$(EINC) --include-dir=$(SRC); then \
|
if windres -i $< -o $@ --include-dir=$(EINC) --include-dir=$(SRC); then \
|
||||||
${COMPILE_OK}; \
|
$(COMPILE_OK); \
|
||||||
else \
|
else \
|
||||||
${COMPILE_FAILED}; \
|
$(COMPILE_FAILED); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(OBJ)/%.$o: $(SRC)/util/%.c
|
$(OBJ)/%.$o: $(SRC)/util/%.c
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
||||||
${COMPILE_OK}; \
|
$(COMPILE_OK); \
|
||||||
else \
|
else \
|
||||||
${COMPILE_FAILED}; \
|
$(COMPILE_FAILED); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(OBJ)/%.$o: $(RSRC)/%.c
|
$(OBJ)/%.$o: $(RSRC)/%.c
|
||||||
${COMPILE_STATUS}
|
$(COMPILE_STATUS)
|
||||||
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
if $(CC) $(CFLAGS) $(OURCFLAGS) -c $< -o $@; then \
|
||||||
${COMPILE_OK}; \
|
$(COMPILE_OK); \
|
||||||
else \
|
else \
|
||||||
${COMPILE_FAILED}; \
|
$(COMPILE_FAILED); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(OBJ)/game_banner.$o: $(RSRC)/game_banner.c
|
$(OBJ)/game_banner.$o: $(RSRC)/game_banner.c
|
||||||
|
|
Loading…
Reference in a new issue