From 5077a639138b7948a121b79859d6744979ac39cf Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Wed, 23 Mar 2022 16:28:39 +0800 Subject: neon.mak: Prepare to support existing deps Add a macro so that we can expand it for using existing libraries during the build, to link into the final binary. --- neon.mak | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neon.mak b/neon.mak index e8ca03c..f19958a 100644 --- a/neon.mak +++ b/neon.mak @@ -20,6 +20,8 @@ CFLAGS = /MDd /W3 /Gm /EHsc /Zi /Od /D "_DEBUG" TARGET = .\libneonD.lib !ENDIF +NE_DEP_LIBS = + # Silence deprecation warnings on later Visual Studio versions, which # actually can be ignored CFLAGS = $(CFLAGS) /D _CRT_SECURE_NO_WARNINGS /D _CRT_NONSTDC_NO_WARNINGS /D _WINSOCK_DEPRECATED_NO_WARNINGS @@ -197,7 +199,7 @@ CLEAN: $(ZLIB_CLEAN) "$(TARGET)": $(DEF_FILE) $(LIB32_OBJS) -@if not exist "$(INTDIR)/$(NULL)" mkdir "$(INTDIR)" $(LIB32) @<< - $(LIB32_FLAGS) $(DEF_FLAGS) $(LIB32_OBJS) + $(LIB32_FLAGS) $(DEF_FLAGS) $(LIB32_OBJS) $(NE_DEP_LIBS) << {src}.c{$(INTDIR)}.obj:: -- cgit v1.2.1