Skip to content
Snippets Groups Projects
Commit 90d7cad6 authored by deuce's avatar deuce
Browse files

Add NEED_SMBLIB define.

Fix SMBLIB_LFLAGS to SMBLIB_LDFLAGS
parent d7258750
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,8 @@
# You really should set this first.
SMBLIB_SRC ?= $(XPDEV)../smblib/
SMBLIB_LFLAGS += -L$(SMBLIB_SRC) -lsmblib
SMBLIB_CFLAGS += -I$(SMBLIB_SRC)
SMBLIB_LDFLAGS += -L$(SMBLIB_SRC) -lsmblib
SMBLIB_ODIR ?= $(XPDEV)../smblib/$(LIBODIR)
SMBLIB_TARGET := $(SMBLIB_ODIR)/libsmb.a
SMBLIB_OBJS := \
......@@ -17,6 +18,12 @@ SMBLIB_OBJS := \
$(SMBLIB_ODIR)/lzh.o \
$(SMBLIB_ODIR)/filewrap.o
ifdef NEED_SMBLIB
CFLAGS += $(SMBLIB_CFLAGS)
LDFLAGS += $(SMBLIB_LDFLAGS)
OBJS += $(SMBLIB_TARGET)
endif
vpath %.c $(SMBLIB_SRC)
vpath %.cpp $(SMBLIB_SRC)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment