mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-07 09:43:40 +08:00
29 lines
758 B
Makefile
29 lines
758 B
Makefile
|
#
|
||
|
# wrapper Makefile for auto-generated make files
|
||
|
#
|
||
|
#
|
||
|
|
||
|
#############################################################################
|
||
|
# PROJECT MAKEFILES
|
||
|
#############################################################################
|
||
|
MAKE_FILE = Makefile.$(MOD_CONFIG)
|
||
|
-include $(MAKE_FILE)
|
||
|
|
||
|
#############################################################################
|
||
|
# The compiler command line for each src code file to compile
|
||
|
#############################################################################
|
||
|
DO_CC = $(CPLUS) $(INCLUDES) -DARCH=$(ARCH)
|
||
|
|
||
|
ifeq (_DEBUG,$(findstring _DEBUG,$(CFLAGS)))
|
||
|
DO_CC += $(DEFINES) $(DBG_CFLAGS)
|
||
|
else
|
||
|
DO_CC += $(CFLAGS)
|
||
|
endif
|
||
|
|
||
|
DO_CC += -o $@ -c $<
|
||
|
|
||
|
clean:
|
||
|
rm -rf obj/$(NAME)_$(ARCH)
|
||
|
rm -f $(NAME)_$(ARCH).$(SHLIBEXT)
|
||
|
|